What is the best way to list the non-ruby gemstone addiction?

I am writing a ruby ​​stone that would like to use an open source program distributed as python. I don't have time to port a python program to ruby, and I want to manage the external dependency as much as possible.

I am thinking of using the Gem.pre_install binding for the automatic easy_install python package that interests me.

http://rubygems.rubyforge.org/rubygems-update/Gem.html#method-c-pre_install

I would appreciate advice on the best ways or support for pre_install if this was an accepted practice.

+3
source share
2 answers

, . , stackoverflow , babushka:)

python , - :

dep 'blah.gem' do
  requires 'something.pip'
end

dep 'something.pip'

babushka blah.gem , rubygems pip .

+1

.

, python hook pre_install .

0

Source: https://habr.com/ru/post/1791363/


All Articles