Red Hat Bugzilla – Bug 79243
usage of deprecated rpm commands in python distutils
Last modified: 2008-05-01 11:38:04 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
the file /usr/lib/python2.2/distutils/command/bdist_rpm.py still uses the 'rpm'
command (-ba, -bb, etc) to build RPMS. This should be rpmbuild in RedHat 8.0 (to
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to build numpy (http://sourceforge.net/projects/numpy). After unpacking:
python setup.py bdist_rpm --release="i386".
Actual Results: 1. It will fail attempting to run "rpm -ba ..."
Expected Results: It should have run "rpmbuild -ba ..."
Changing 'rpm' to 'rpmbuild' in
/usr/lib/python2.2/distutils/command/bdist_rpm.py at line 284 solves the problem.
*** This bug has been marked as a duplicate of 75304 ***