Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 25dc0884f7682da33a9540db68d1169f > files > 2

ScientificPython-2.8-10.fc13.src.rpm

--- ScientificPython-2.8/setup.py.old	2009-03-01 17:00:41.000000000 -0900
+++ ScientificPython-2.8/setup.py	2009-03-01 17:07:16.000000000 -0900
@@ -45,6 +45,9 @@
                                  "Lib/site-packages/numpy/core/include")]
     else:
         arrayobject_h_include = [os.path.join(sys.prefix,
+                                "lib64/python%s.%s/site-packages/numpy/core/include"
+                                % sys.version_info [:2]),
+                                os.path.join(sys.prefix,
                                 "lib/python%s.%s/site-packages/numpy/core/include"
                                 % sys.version_info [:2])]
 
@@ -78,9 +81,10 @@
 if netcdf_prefix is None:
     for netcdf_prefix in ['/usr/local', '/usr', '/sw']:
         netcdf_include = os.path.join(netcdf_prefix, 'include')
-        netcdf_lib = os.path.join(netcdf_prefix, 'lib')
-        if os.path.exists(os.path.join(netcdf_include, 'netcdf.h')):
-            break
+        for arch_lib in ['lib64', 'lib']:
+             netcdf_lib = os.path.join(netcdf_prefix, arch_lib)
+             if os.path.exists(os.path.join(netcdf_include, 'netcdf.h')):
+                 break
     else:
         netcdf_prefix = None