aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Niemira <marcin.niemira@gmail.com>2019-06-09 07:05:06 +1000
committerCheryl Sabella <cheryl.sabella@gmail.com>2019-06-08 17:05:05 -0400
commit45a14942c969ed508b35abd5e116cb18f84ce5b4 (patch)
tree497854838d7a8f9c2bc6d8da06095ccb53a603ec /Lib/distutils/command
parentbpo-37178: Allow a one argument form of math.perm() (GH-13905) (diff)
downloadcpython-45a14942c969ed508b35abd5e116cb18f84ce5b4.tar.gz
cpython-45a14942c969ed508b35abd5e116cb18f84ce5b4.tar.bz2
cpython-45a14942c969ed508b35abd5e116cb18f84ce5b4.zip
bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/bdist_rpm.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 20ca7ac6dcf..74381cc69a6 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -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')