Opened 13 years ago

Closed 13 years ago

#33753 closed defect (duplicate)

Side effect of XCode moving to /Applications/XCode on Python modules

Reported by: public@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: python, xcode Cc:
Port:

Description

I have found a problem related with the relocation of the XCode from /Developer to /Applications

Trying to compile my Cython bindings I got an error about Clang not being found:

unable to execute /Developer/usr/bin/clang: No such file or directory

I tried to solve this my setting the CC and CXX environment variables to the right clang location

That solved only one step. The variables made possible the first compilation step, but the second one failed again with the same error. In that case, since I was using py27-cython I had to manually modify the Makefile of my python modules lib at:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/config/Makefile

After setting the CC and CXX variables with the same values of my environment, everything went OK again

That is the solution to the problem. Since I do not know how MacPorts mantains the python modules path I am not aware of what can be done/upgraded so other users do not have the same problem

Change History (1)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.