bdist_rpm problems, and my work around.

zirpu xunre pelxu zirpu at yahoo.com
Thu Aug 5 13:22:43 EDT 2004


python setup.py bdist_rpm 

[...]

# eventually complains about the extra -debuginfo package.

my work around:

in the package dir create .rpmmacros with just these lines:

%define debug_package %{nil}
#%#define _unpackaged_files_terminate_build  0


the 2nd line is not necessary usually, but there for reference.

then to build packages i do:

HOME=`pwd` python setup.py bdist_rpm


Quetions for those who might know:

where can i define rpm macros in setup.py?  there doesn't seem to be any support
for changing those default spec file templates that bdist_rpm uses.

-a




More information about the Python-list mailing list