[MacPorts] #33747: py27-readline @6.2.2 build failure
MacPorts
noreply at macports.org
Sat Mar 24 17:41:01 PDT 2012
#33747: py27-readline @6.2.2 build failure
----------------------------------------+-----------------------------------
Reporter: GuillaumeBOUERAT@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: py27-readline
----------------------------------------+-----------------------------------
Comment(by nad@…):
The problem is building the Python extension module which uses Python's
distutils. It looks like MacPorts overrode the CC environment variable
but that's not enough for Python framework builds; LDSHARED must be
overridden as well (see [http://bugs.python.org/issue13590#msg152803]).
What probably happened here is that the OP originally installed python27
with Xcode 4.2 was installed when clang was in /Developer/usr/bin. Python
installs remember the absolute path of the C compiler used to build
themselves for use later by Distutils when installing packages with C
extension modules. If the path to the compiler changes, as happened with
Xcode 4.3 (where /Developer was removed), subsequent Python package
installs will fail. The easiest way to fix the problem is to force
reinstalling Python, e.g.
{{{
port -n upgrade --force python27
}}}
which will rebuild Python and record the current compiler path. This
probably should go into the ProblemHostList as users will likely run into
this with other Python packages that include C extension modules.
--
Ticket URL: <https://trac.macports.org/ticket/33747#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list