This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils builds too many rpms
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jonez
Priority: normal Keywords:

Created on 2004-08-10 14:23 by jonez, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22037 - (view) Author: Jeff MacDonald (jonez) Date: 2004-08-10 14:23
I have a small extension module called 'getdate' which
I am trying to build as an rpm using distutils.

the module builds just fine, however at the very end, I
get the following error:

Traceback (most recent call last):
  File "./setup.py", line 83, in ?
    include_dirs = [get_python_inc(plat_specific=1),]),
  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_rpm.py",
line 316, in run
AssertionError: unexpected number of RPM files found:
['build/bdist.linux-i686/rpm/RPMS/i386/getdate-1.0.1-1.i386.rpm',
'build/bdist.linux-i686/rpm/RPMS/i386/getdate-debuginfo-1.0.1-1.i386.rpm']
msg22038 - (view) Author: Jeff MacDonald (jonez) Date: 2004-08-10 14:24
Logged In: YES 
user_id=3547

if it's relevant, I am using Fedora Core 2 as the build
machine. the python version I am using is: "python-2.3.3-6"
msg22039 - (view) Author: Jeff MacDonald (jonez) Date: 2004-08-10 21:07
Logged In: YES 
user_id=3547

this is an issue caused by redhat which always builds
'debuginfo' rpms.. I am told it has been fixed upstream, and
at the moment I have hacked my .rpmmacros file so that the
build I am trying to finish works. I'm closing this ticket.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40734
2004-08-10 14:23:52jonezcreate