diff options
Diffstat (limited to 'ext/openbabel/extconf.rb')
-rw-r--r-- | ext/openbabel/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb index c260508..ae9c3f2 100644 --- a/ext/openbabel/extconf.rb +++ b/ext/openbabel/extconf.rb @@ -1,9 +1,11 @@ require 'fileutils' require 'tmpdir' require 'mkmf' +$:.unshift File.expand_path('../../../lib', __FILE__) +require 'openbabel/version' -ob_num_ver="2.3.1" -ob_ver="openbabel-"+ob_num_ver +ob_num_ver = OpenBabel::VERSION +ob_ver = "openbabel-"+ob_num_ver RUBY=File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) |