failure using Distutils to build Numeric-20.1

Roman Suzi rnd at
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 bdist_rpm
+ umask 022
+ cd
+ cd RNG-3.1
+ env CFLAGS=-O2 -m486 -fno-strength-reduce python2.1 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/ -> build/lib.linux-i586-2.1/RNG
copying Lib/ -> 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:


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
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 _/
_/ Friday, August 10, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "This mind intentionally left blank." _/

More information about the Python-list mailing list