uwsgi 1.9.14 → 1.9.15
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/uwsgi/extconf.rb +2 -0
- metadata +1 -1
data/ext/uwsgi/extconf.rb
CHANGED
@@ -9,6 +9,8 @@ end
|
|
9
9
|
|
10
10
|
major,minor = RUBY_VERSION.split('.')
|
11
11
|
if major.to_i >= 2 or (major.to_i == 1 and minor.to_i >= 9)
|
12
|
+
# a trick for installations with messy PATH
|
13
|
+
ENV['UWSGICONFIG_RUBYPATH'] = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
|
12
14
|
system("bash install.sh ruby2 #{Dir.pwd}/uwsgi.ruby")
|
13
15
|
else
|
14
16
|
system("bash install.sh rack #{Dir.pwd}/uwsgi.ruby")
|