[MacPorts] #22418: py-ctypes won't build on Snow Leopard (libffi related?)

MacPorts noreply at macports.org
Wed Apr 7 08:50:37 PDT 2010


#22418: py-ctypes won't build on Snow Leopard (libffi related?)
--------------------------------+-------------------------------------------
 Reporter:  optilude@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.8.1                                
 Keywords:                      |        Port:  py-ctypes                            
--------------------------------+-------------------------------------------

Comment(by klemens.mantzos@…):

 Replying to [comment:5 johannes.schrimpf@…]:
 > I could compile the packet by overriding the libffi compilation in the
 ctypes setup.py file, line 167:
 >
 > /opt/local/var/macports/build/_opt_..._py-
 ctypes/work/ctypes-1.0.1/setup.py
 >
 > changing from:
 >         build_ext.build_ext.build_extensions(self)
 > to
 >         #build_ext.build_ext.build_extensions(self)
 >
 >
 > I do not know if this skips to much code, but it did install for me. I
 can import ctypes in python, but i did not test the functionality.
 > Maybe it helps to build a patch or a workaround.

 think it works fine this way (libffi is installed anyway, doesnt need to
 build it again - especially if its a "broken" build). but...

 ...fyi: i switched to python 2.6 (ctypes is integrated). everything i need
 works fine on it (django, mysqldb, geoip, geos and dependencies).
 jmr at macports.org said it already, i don't know why but, < 2.6 is a bad
 idea on snow leopard.

-- 
Ticket URL: <http://trac.macports.org/ticket/22418#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list