Commits

BarryFSmith committed 65a249b

petsc4py.py should check /usr/lib and /opt/local/lib for locations of python dynamic library with and without version numbers

Comments (0)

Files changed (1)

config/PETSc/packages/petsc4py.py

       import os
       prefix = sys.exec_prefix
       if os.path.isfile(os.path.join(prefix,'Python')):
-        for i in ['/usr/lib/libpython.dylib','/opt/local/lib/libpython'+sys.version[:3]+'.dylib']:
+        for i in ['/usr/lib/libpython.dylib','/usr/lib/libpython'+sys.version[:3]+'.dylib','/opt/local/lib/libpython.dylib','/opt/local/lib/libpython'+sys.version[:3]+'.dylib']:
           if os.path.realpath(i) == os.path.join(prefix,'Python'):
             self.addDefine('PYTHON_LIB','"'+os.path.join(i)+'"')
             return