summaryrefslogtreecommitdiff
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
commitd048c412f43c2b9eaa1e282fa2d3bacec2a2d82e (patch)
treea31ea6467a6a596cd951d75e01a724875fc12bbb
parentb30cb4676572d51a26f3b74a40035df97f8a41c7 (diff)
downloadpython-setuptools-git-d048c412f43c2b9eaa1e282fa2d3bacec2a2d82e.tar.gz
bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)
-rw-r--r--command/bdist_rpm.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/command/bdist_rpm.py b/command/bdist_rpm.py
index 20ca7ac6..74381cc6 100644
--- a/command/bdist_rpm.py
+++ b/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')