failure using Distutils to build Numeric-20.1

Roman Suzi rnd at onego.ru
Fri Aug 10 16:21:19 CEST 2001


I am learning Distutils and am trying to compile Numeric-20.1.0.
The main package gets compiled, but RNG (and others) not, eg:

This is result of:

$ python2.1 setup.py bdist_rpm
...
+ umask 022
+ cd
/home/rnd/src/Numeric-20.1.0/Packages/RNG/build/bdist.linux-i586/rpm/BUILD
+ cd RNG-3.1
+ env CFLAGS=-O2 -m486 -fno-strength-reduce python2.1 setup.py build
running build
running build_py
creating build
creating build/lib.linux-i586-2.1
creating build/lib.linux-i586-2.1/RNG
copying Lib/Statistics.py -> build/lib.linux-i586-2.1/RNG
copying Lib/__init__.py -> build/lib.linux-i586-2.1/RNG
running build_ext
building 'RNG.RNG' extension
creating build/temp.linux-i586-2.1
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -IInclude -I../../Include
-I/usr/include/python2.1 -c Src/RNGmodule.c -o
build/temp.linux-i586-2.1/RNGmodule.o -O2 -m486 -fno-strength-reduce
Src/RNGmodule.c:17: ranf.h: No such file or directory
error: command 'gcc' failed with exit status 1
Bad exit status from /var/tmp/rpm-tmp.1512 (%build)
error: command 'rpm' failed with exit status 1
------------------------

(Same command for "build" is successful).


More details: my default python is python1.5, so I provided
setup.cfg for each package directory:

----------------------------
[bdist_rpm]
python=python2.1
----------------------------

I have

$ rpm --version
RPM version 3.0.6

Distutils as come with python2.1.

Is it:
1) my fault of having too many Pythons ;-) or not providing some options
2) rpm's fault of switching to some other dir
   (I noticed /var/tmp/rpm-tmp.12354 in the printout above)
3) some glitch in the Distutils
4) problem in Numeric setup.py
5) Any combination of the above

Anyway, I'd liked to present this problem here (I also posted
to numeric-list, but received no answer from there yet) and hope
to get some hints or answers. Thanks!

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Friday, August 10, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "This mind intentionally left blank." _/





More information about the Python-list mailing list