Forum: help
Monitor Forum | | Problems building with personal Numeric [ Reply ] By: Michael Sternberg on 2007-01-08 21:11 | [forum:1834] |
|
I built and installed Konrad's Numeric-23.8.2 under my home, using: export PYTHONPATH=$HOME/share python setup.py install --home=~/share The install apparently succeeded, and I have: [15:03] mackinac:__/ScientificPython-2.7.3$ ls $PYTHONPATH/{include,lib}/python/Numeric/Users/stern/share/include/ python/Numeric: arrayobject.h f2c.h ranlib.h ufuncobject.h /Users/stern/share/lib/python/Numeric: ArrayPrinter.py MLab.pyc RNG lapack_lite.so ArrayPrinter.pyc Matrix.py RandomArray.py multiarray.so FFT Matrix.pyc RandomArray.pyc numeric_version.py LinearAlgebra.py Numeric.py UserArray.py numeric_version.pyc LinearAlgebra.pyc Numeric.pyc UserArray.pyc ranlib.so MA Precision.py _numpy.so umath.so MLab.py Precision.pyc arrayfns.so However, when trying to use this with Scientific, gcc does not get passed a -I flag to pick up anything from $PYTHONPATH. How do I tell Scientific (or python) to use my Numeric install?? This is on MacOS X, using python-2.4 from DarwinPorts/MacPorts. [15:04] mackinac:__/ScientificPython-2.7.3$ python setup.py install --home=~/share Using netCDF installation in /opt/local running install running build running build_py running build_ext building 'Scientific_netcdf' extension /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -IInclude -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/opt/local/include/python2.4 -c Src/Scientific_netcdf.c -o build/temp.darwin-8.8.1-i386-2.4/Src/Scientific_netcdf.o Src/Scientific_netcdf.c:19:33: error: Numeric/arrayobject.h: No such file or directory In file included from Src/Scientific_netcdf.c:25: Include/Scientific/netcdfmodule.h:235: error: parse error before '*' token [...] error: command '/usr/bin/gcc-4.0' failed with exit status 1 |
|