[Numpy-svn] r3658 - trunk/numpy/distutils/fcompiler

numpy-svn@scip... numpy-svn@scip...
Wed Apr 4 07:56:50 CDT 2007


Author: cookedm
Date: 2007-04-04 07:56:47 -0500 (Wed, 04 Apr 2007)
New Revision: 3658

Modified:
   trunk/numpy/distutils/fcompiler/ibm.py
Log:
Fix for making Fortran extensions on AIX.


Modified: trunk/numpy/distutils/fcompiler/ibm.py
===================================================================
--- trunk/numpy/distutils/fcompiler/ibm.py	2007-04-04 03:14:32 UTC (rev 3657)
+++ trunk/numpy/distutils/fcompiler/ibm.py	2007-04-04 12:56:47 UTC (rev 3658)
@@ -5,6 +5,7 @@
 from numpy.distutils.fcompiler import FCompiler
 from numpy.distutils.exec_command import exec_command, find_executable
 from distutils import log
+from distutils.sysconfig import get_python_lib
 
 class IbmFCompiler(FCompiler):
 
@@ -48,6 +49,15 @@
                 self.version = version = LooseVersion(l[0])
         return version
 
+    def get_linker_so(self):
+        if sys.platform.startswith('aix'):
+            python_lib = get_python_lib(standard_lib=1)
+            ld_so_aix = os.path.join(python_lib, 'config', 'ld_so_aix')
+            python_exp = os.path.join(python_lib, 'config', 'python.exp')
+            return [ld_so_aix, self.executables['linker_so'], python_exp]
+        else:
+            return FCompiler.get_linker_so(self)
+
     def get_flags(self):
         return ['-qextname']
 



More information about the Numpy-svn mailing list