bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)
This commit is contained in:
parent
e119b3d136
commit
45a14942c9
|
@ -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')
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Distutils won't check for rpmbuild in specified paths only.
|
Loading…
Reference in New Issue