Skip to content

bpo-11122: always use rpmbuild in bdist_rpm#10594

Merged
csabella merged 1 commit into
python:masterfrom
n0npax:rpmbuild-hardcode-fix-11122
Jun 8, 2019
Merged

bpo-11122: always use rpmbuild in bdist_rpm#10594
csabella merged 1 commit into
python:masterfrom
n0npax:rpmbuild-hardcode-fix-11122

Conversation

@n0npax

@n0npax n0npax commented Nov 18, 2018

Copy link
Copy Markdown
Contributor

@n0npax n0npax force-pushed the rpmbuild-hardcode-fix-11122 branch from 379c379 to 4189641 Compare April 19, 2019 05:14
if os.path.exists('/usr/bin/rpmbuild') or \
os.path.exists('/bin/rpmbuild'):
rpm_cmd = ['rpmbuild']
rpm_cmd = ['rpmbuild']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should line 338 be changed too?

@merwok merwok changed the title bpo-11122: fix hardcoded rpmbuild path checking in bdist_rpm.py bpo-11122: always use rpmbuild in bdist_rpm May 29, 2019
@csabella

Copy link
Copy Markdown
Contributor

In #10172, the suggested change was to use if shutil.which('rpmbuild'), but that also added an additional import. I closed that pull request as a duplicate of this one.

@ned-deily ned-deily removed their request for review May 29, 2019 14:52

@ericvsmith ericvsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see much point in running which, just to find the path. It doesn't buy you anything vs. just running the command.

I think the patch as-is is fine.

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @n0npax for the PR, and @csabella for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-13922 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Jun 8, 2019
…H-10594)

(cherry picked from commit 45a1494)

Co-authored-by: Marcin Niemira <marcin.niemira@gmail.com>
@merwok

merwok commented Jun 10, 2019

Copy link
Copy Markdown
Member

There was no answer to my review question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants