[MacPorts] #33753: Side effect of XCode moving to /Applications/XCode on Python modules

MacPorts noreply at macports.org
Sun Mar 25 03:50:05 PDT 2012


#33753: Side effect of XCode moving to /Applications/XCode on Python modules
-----------------------------------------+----------------------------------
 Reporter:  public@…                     |       Owner:  macports-tickets@…                   
     Type:  defect                       |      Status:  new                                  
 Priority:  Normal                       |   Milestone:                                       
Component:  ports                        |     Version:  2.0.4                                
 Keywords:  python, xcode                |        Port:                                       
-----------------------------------------+----------------------------------
 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

-- 
Ticket URL: <https://trac.macports.org/ticket/33753>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list