Hi Pierre, All, On 17.04.2007, at 08:39, Pierre SCHNIZER wrote:
But please at least a version of 1.0 for numpy, as they changed some typedefs near the end of the 0.9 series.If you want to build for a different array package then:1.) delete the build tree (or use a different tree for each package using the --build-base option)2.) python setup.py build --array-object=Numeric|numarray|numpy
I am on Mac OS X PPC; python-2.4.3, numpy 1.0.1, Numeric 24.2, numarray 1.5.2 (these are the versions currently in MacPorts).
Building pygsl-0.9.0 with numpy works, however, with Numeric and numarray it does not. The errors I get are, in both cases, the following:
python setup.py build --array-object=Numeric Using 'Numeric' as array object['gsl_dist.__init__', 'gsl_dist.array_includes', 'gsl_dist.gsl_Extension', 'gsl_dist.gsl_site_example', 'gsl_dist.swig_extension']
[...] creating build/temp.darwin-8.9.0-Power_Macintosh-2.4/src creating build/temp.darwin-8.9.0-Power_Macintosh-2.4/src/init/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp- precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g - O3 -Wall -Wstrict-prototypes -fexceptions -g -pipe -O3 -Wall - DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DNUMERIC=1 - DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=9 -UNDEBUG -I/ opt/local/include -IInclude -I. -I/opt/local/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4 -I/opt/local/include/ python2.4 -c src/init/errorno.c -o build/temp.darwin-8.9.0- Power_Macintosh-2.4/src/init/errorno.o /usr/bin/gcc-4.0 -bundle -undefined dynamic_lookup -fexceptions -g - pipe -O3 -Wall build/temp.darwin-8.9.0-Power_Macintosh-2.4/src/init/ errorno.o -L/opt/local/lib -lgsl -lgslcblas -lm -o build/ lib.darwin-8.9.0-Power_Macintosh-2.4/pygsl/errno.so
building 'init' extension/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp- precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g - O3 -Wall -Wstrict-prototypes -fexceptions -g -pipe -O3 -Wall - DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DNUMERIC=1 - DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=9 -UNDEBUG -I/ opt/local/include -IInclude -I. -I/opt/local/Library/Frameworks/ Python.framework/Versions/2.4/include/python2.4 -I/opt/local/include/ python2.4 -c src/init/initmodule.c -o build/temp.darwin-8.9.0- Power_Macintosh-2.4/src/init/initmodule.o
In file included from src/init/initmodule.c:51: src/init/block_helpers.c: In function 'PyGSL_PyArray_Check':src/init/block_helpers.c:243: error: 'PyArray_BYTE' undeclared (first use in this function) src/init/block_helpers.c:243: error: (Each undeclared identifier is reported only once
src/init/block_helpers.c:243: error: for each function it appears in.)src/init/block_helpers.c:243: error: 'PyArray_STRING' undeclared (first use in this function)
error: command '/usr/bin/gcc-4.0' failed with exit status 1 Greetings, Jochen -- Fritz-Haber-Institut der MPG -- Department of Molecular Physics Faradayweg 4-6 (C1.03) D-14195 Berlin, Germany phone: +49-30-84135686 fax: +49-30-84135892
PGP.sig
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ pygsl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pygsl-discuss
