[Distutils] [python2.2.2 + RedHat9] setup.py doesn't work correctly

Benoit Regrain benoit.regrain at creatis.insa-lyon.fr
Mon Sep 29 05:40:36 EDT 2003


I have problem to package my library using the setup.py.
This package contains soome python modules and C++ code that must be compiled.

Before, I was under RedHat7.3 and I had no problem to create my package.
I have moved under RedHat9 ; and now, I obtain an assertion failure when I have
the part concerning the compilation (ext_modules parameter of the setup method)

The assertion failure appears after the compilation of C++ code.
And the error message is :
File "/usr/lib/python2.2/distutils/command/bdist_rpm.py", line 314, in run
   assert len(rpms) == 1, \
AssertionError: unexpected number of RPM files found: ['build/bdist.linux-i686/rpm/RPMS/i386/DaVaW-1.2-1.i386.rpm',

Greatings for your help

Benoit Regrain
Ingénieur d'études CNRS (Creatis)
email : regrain at creatis.insa-lyon.fr
phone : (+33) (0)
fax : (+33) (0)
INSA - Bâtiment Blaise Pascal
7, avenue Jean Capelle
F - 69621 Villeurbanne Cedex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20030929/67a36974/attachment.html

More information about the Distutils-SIG mailing list