[Numpy-tickets] [NumPy] #304: numpy.distutils fails to find installed libraries on Darwin/MacOSX

NumPy numpy-tickets at scipy.net
Mon Oct 2 06:40:47 CDT 2006


#304: numpy.distutils fails to find installed libraries on Darwin/MacOSX
-----------------------------+----------------------------------------------
 Reporter:  RJVB             |       Owner:  somebody                          
     Type:  enhancement      |      Status:  new                               
 Priority:  normal           |   Milestone:  1.0 Release                       
Component:  numpy.distutils  |     Version:                                    
 Severity:  normal           |    Keywords:  finding installed shared libraries
-----------------------------+----------------------------------------------
 numpy.distutils fails to find installed libraries on Darwin/MacOSX because
 Darwin has its own extension for shared libraries, dylib. This can be
 remedied by modifying system_info.py such that the library_extensions
 method reads:


 {{{
     def library_extensions(self):
         static_exts = ['.a']
         if sys.platform == 'win32':
             static_exts.append('.lib')  # .lib is used by MSVC
         if self.search_static_first:
             exts = static_exts + [so_ext]
         else:
             exts = [so_ext] + static_exts
         if sys.platform == 'cygwin':
             exts.append('.dll.a')
         # RJVB: Darwin's shared lib extension is .dylib :
         if sys.platform == 'darwin':
             exts.append('.dylib')
         return exts
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/304>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list