#33918: py27-wxpython fails with Xcode 4.3.2 ------------------------------------+--------------------------------------- Reporter: martin.kastner@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: ------------------------------------+--------------------------------------- Comment(by mrosenstihl@…): Hi! Same problem here on Leopard.
'''Culprit:''' SDKs folder is hard coded in config.py config.py:1041: cflags.append("/Developer/SDKs/MacOSX10.6.sdk")
'''Workaround:''' Create some links ...
#cd / #ln -s /Applications/Xcode.app/Contents/Developer Developer #cd /Developer #ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs SDKs
one solutio would be to replace:
config.py:1041: cflags.append("/Developer/SDKs/MacOSX10.6.sdk")
with: import platform v,_,_ =platform.mac_ver() osx_sdk_ver = .".join(v.split('.')[:2]) cflags.append("/Developer/SDKs/MacOSX%s.sdk"%osx_sdk_ver) -- Ticket URL: <https://trac.macports.org/ticket/33918#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS