[Distutils] AssertionError when building rpm under RedHat 9.1
Fri May 2 04:50:02 2003
Ricardo Niederberger Cabral wrote:
>>From distutils __version__ = "1.0.3":
> File "distutils/command/bdist_rpm.py", line 316, in run
> assert len(rpms) == 1, \
> AssertionError: unexpected number of RPM files found: ['build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-0.7-1.i386.rpm', 'build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-debuginfo-0.7-1.i386.rpm']
> I had to remove the assert statement on bdist_rpm.py:316 in order to build my rpm.
> Would it be possible to change from "assert len(rpms) == 1" to "assert len(rpms) >= 1" ? Since rpmbuild from RH seems to always generate this extra -debuginfo rpm.
Could you submit a bug report / patch for this to SourceForge ?
Professional Python Software directly from the Source (#1, May 02 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
EuroPython 2003, Charleroi, Belgium: 53 days left