bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)

This commit is contained in:
Marcin Niemira 2019-06-09 07:05:06 +10:00 committed by Cheryl Sabella
parent e119b3d136
commit 45a14942c9
2 changed files with 2 additions and 4 deletions

View File

@ -309,10 +309,7 @@ class bdist_rpm(Command):
# build package
log.info("building RPMs")
rpm_cmd = ['rpm']
if os.path.exists('/usr/bin/rpmbuild') or \
os.path.exists('/bin/rpmbuild'):
rpm_cmd = ['rpmbuild']
rpm_cmd = ['rpmbuild']
if self.source_only: # what kind of RPMs?
rpm_cmd.append('-bs')

View File

@ -0,0 +1 @@
Distutils won't check for rpmbuild in specified paths only.