Changeset 904702d for waflib/Tools/ruby.py
- Timestamp:
- Mar 14, 2015, 6:06:10 PM (10 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 6d7acc8
- Parents:
- 5525507
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waflib/Tools/ruby.py
r5525507 r904702d 28 28 ruby=self.env.RUBY 29 29 try: 30 version=self.cmd_and_log( [ruby,'-e','puts defined?(VERSION) ? VERSION : RUBY_VERSION']).strip()30 version=self.cmd_and_log(ruby+['-e','puts defined?(VERSION) ? VERSION : RUBY_VERSION']).strip() 31 31 except Exception: 32 32 self.fatal('could not determine ruby version') … … 52 52 version=tuple(map(int,self.env.RUBY_VERSION.split("."))) 53 53 def read_out(cmd): 54 return Utils.to_list(self.cmd_and_log( [self.env.RUBY,'-rrbconfig','-e',cmd]))54 return Utils.to_list(self.cmd_and_log(self.env.RUBY+['-rrbconfig','-e',cmd])) 55 55 def read_config(key): 56 return read_out('puts Config::CONFIG[%r]'%key)56 return read_out('puts RbConfig::CONFIG[%r]'%key) 57 57 ruby=self.env['RUBY'] 58 58 archdir=read_config('archdir') … … 88 88 self.start_msg('Ruby module %s'%module_name) 89 89 try: 90 self.cmd_and_log( [self.env['RUBY'],'-e','require \'%s\';puts 1'%module_name])90 self.cmd_and_log(self.env.RUBY+['-e','require \'%s\';puts 1'%module_name]) 91 91 except Exception: 92 92 self.end_msg(False)
Note: See TracChangeset
for help on using the changeset viewer.