[python2.2.2 + RedHat9] setup.py doesn't work correctly
Hi, 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', 'build/bdist.linux-i686/rpm/RPMS/i386/DaVaW-debuginfo-1.2-1.i386.rpm'] Greatings for your help ----------------------------------------------------------------- Benoit Regrain Ingénieur d'études CNRS (Creatis) email : regrain@creatis.insa-lyon.fr phone : (+33) (0) 4.72.43.82.58 fax : (+33) (0) 4.72.43.85.26 INSA - Bâtiment Blaise Pascal 7, avenue Jean Capelle F - 69621 Villeurbanne Cedex -----------------------------------------------------------------
On Mon, Sep 29, 2003 at 11:40:36AM +0200, Benoit Regrain wrote:
AssertionError: unexpected number of RPM files found: ['build/bdist.linux-i686/rpm/RPMS/i386/DaVaW-1.2-1.i386.rpm', 'build/bdist.linux-i686/rpm/RPMS/i386/DaVaW-debuginfo-1.2-1.i386.rpm']
Interesting. It looks like RPM now builds two RPMs, one with debugging information and one without it. Is the resulting DaVaW-debuginfo-1.2-1.i386.rpm RPM file actually correct? That is, does it contain debugging versions of all .so files, plus whatever .py/data files are to be installed? If the debugging RPM is correct, then the assertion should be removed and both RPM files should be copied to dist/. If the debugging RPM is wrong, then its generation should be suppressed. I think this would be done by including '%debug_package %{nil}' in the .spec file that bdist_rpm generates. --amk
participants (2)
-
amk@amk.ca
-
Benoit Regrain