[MacPorts] #34146: Cython builds using numpy fail due to incorrectly placed headers
MacPorts
noreply at macports.org
Fri Apr 20 13:00:55 PDT 2012
#34146: Cython builds using numpy fail due to incorrectly placed headers
-------------------------------+--------------------------------------------
Reporter: bgamari@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: py27-numpy
-------------------------------+--------------------------------------------
Cython builds of code requiring numpy fail as cython invokes gcc with the
command line,
{{{
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -O2
-fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I.
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c photon_tools/bin_photons.c -o
build/temp.macosx-10.6-x86_64-2.7/photon_tools/bin_photons.o
}}}
while the headers installed by the numpy package (e.g. arrayobject.h) are
located in
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/numpy. Creating a symlink as follows works around the
issue,
{{{
$ cd
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
$ sudo ln -s ../../lib/python2.7/site-packages/numpy/core/include/numpy
numpy
}}}
--
Ticket URL: <https://trac.macports.org/ticket/34146>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list