[Numpy-discussion] Building rpm for 23.1 fails at the end

Fernando Perez Fernando.Perez at colorado.edu
Wed Jun 2 17:53:08 CDT 2004


Hi all,

I just tried:

root at planck[Numeric-23.1]# ./setup.py build bdist --formats=rpm

and after a while I got this traceback:

moving build/bdist.linux-i686/rpm/SRPMS/Numeric-23.1-1.src.rpm -> dist
Traceback (most recent call last):
   File "./setup.py", line 182, in ?
     ext_modules = ext_modules
   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/core.py", line 
149, in setup
   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/dist.py", line 
907, in run_commands
   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/dist.py", line 
927, in run_command
   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/command/bdist.py", 
line 146, in run
   File "/usr/lib/python2.3/cmd.py", line 333, in run_command

   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/dist.py", line 
927, in run_command
   File 
"/usr/src/build/394694-i386/install/usr/lib/python2.3/distutils/command/bdist_rpm.py", 
line 316, in run
AssertionError: unexpected number of RPM files found: 
['build/bdist.linux-i686/rpm/RPMS/i386/Numeric-23.1-1.i386.rpm', 
'build/bdist.linux-i686/rpm/RPMS/i386/Numeric-debuginfo-23.1-1.i386.rpm']

As it turns out, the rpm DID get correctly built, but the -debuginfo- one is 
confusing setup.py.  I simply copied the rpm by hand and moved on, but someone 
who knows more about distutils than me might want to look into this.

Cheers,

f




More information about the Numpy-discussion mailing list