Modifying setup.py to know about the new architecture specific lib directories seems to fix the problem. Here is an example diff where the architecture is hard coded, I'm sure there's precedent in other packages to patch the file properly:
=== modified file 'setup.py' --- setup.py 2009-11-20 19:22:59 +0000 +++ setup.py 2011-07-06 20:56:04 +0000 @@ -147,6 +147,9 @@ add_directory(library_dirs, "/opt/local/lib") add_directory(include_dirs, "/opt/local/include")
+ elif sys.platform == "linux2": + add_directory(library_dirs, "/usr/lib/x86_64-linux-gnu") + add_directory(library_dirs, "/usr/local/lib") # FIXME: check /opt/stuff directories here?
Modifying setup.py to know about the new architecture specific lib directories seems to fix the problem. Here is an example diff where the architecture is hard coded, I'm sure there's precedent in other packages to patch the file properly:
=== modified file 'setup.py'
add_ directory( library_ dirs, "/opt/local/lib")
add_ directory( include_ dirs, "/opt/local/ include" )
--- setup.py 2009-11-20 19:22:59 +0000
+++ setup.py 2011-07-06 20:56:04 +0000
@@ -147,6 +147,9 @@
+ elif sys.platform == "linux2": library_ dirs, "/usr/lib/ x86_64- linux-gnu" )
add_directory (library_ dirs, "/usr/local/lib")
+ add_directory(
+
# FIXME: check /opt/stuff directories here?