Commits

Austin Ziegler committed 4664e36

Improved detection of 64-bit Python.

Fixes Bitbucket issue #7.
https://bitbucket.org/raineszm/rubypython/issue/7/libpython-fails-to-load-on-64-bit-centos

Comments (0)

Files changed (3)

+=== 0.5.3 / 2011-10-22
+* Bug Fixes:
+  * Improved 64-bit Python detection on Unixes with Linux-like semantics (e.g.,
+    .../lib64).
+
 === 0.5.2 / 2011-10-21
 * Minor Enhancements:
   * The traceback for Python exceptions is now returned usefully. [raineszm]
 Hoe.plugin :git
 Hoe.plugin :hg
 
-Hoe.spec 'rubypython' do |spec|
-  spec.rubyforge_name = spec.name
+Hoe.spec 'rubypython' do
+  self.rubyforge_name = self.name
 
   developer('Steeve Morin', 'swiuzzz+rubypython@gmail.com')
   developer('Austin Ziegler', 'austin@rubyforge.org')
   developer('Zach Raines', 'raineszm+rubypython@gmail.com')
 
-  spec.remote_rdoc_dir = 'rdoc'
-  spec.rsync_args << ' --exclude=statsvn/'
+  self.remote_rdoc_dir = 'rdoc'
+  self.rsync_args << ' --exclude=statsvn/'
 
-  spec.history_file = 'History.rdoc'
-  spec.readme_file = 'README.rdoc'
-  spec.extra_rdoc_files = FileList["*.rdoc"].to_a
+  self.history_file = 'History.rdoc'
+  self.readme_file = 'README.rdoc'
+  self.extra_rdoc_files = FileList["*.rdoc"].to_a
 
-  spec.extra_deps << ['ffi', '~> 1.0.7']
-  spec.extra_deps << ['blankslate', '>= 2.1.2.3']
+  self.extra_deps << ['ffi', '~> 1.0.7']
+  self.extra_deps << ['blankslate', '>= 2.1.2.3']
 
-  spec.extra_dev_deps << ['rspec', '~> 2.0']
-  spec.extra_dev_deps << ['tilt', '~> 1.0']
+  self.extra_dev_deps << ['rspec', '~> 2.0']
+  self.extra_dev_deps << ['tilt', '~> 1.0']
 
-  spec.spec_extras[:requirements]  = [ "Python, ~> 2.4" ]
+  self.spec_extras[:requirements]  = [ "Python, ~> 2.4" ]
 end
 
 namespace :website do

lib/rubypython/pythonexec.rb

         locations << File.join("/opt/lib", name)
         locations << File.join("/usr/local/lib", name)
         locations << File.join("/usr/lib", name)
+        locations << File.join("/opt/local/lib64", name)
+        locations << File.join("/opt/lib64", name)
+        locations << File.join("/usr/local/lib64", name)
+        locations << File.join("/usr/lib64", name)
       end
     end