-
Notifications
You must be signed in to change notification settings - Fork 262
Add CIBW_REPAIR_WHEEL_COMMAND
env variable
#211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @nsoranzo, thanks for submitting this! I preferred the naming Otherwise, I get that people have different tastes regarding style and pep8 might be a good place to be, but if we wanted to adopt that properly (and put tooling in place) that should be a separate PR. It's just tricky as a reviewer to review both style and functionality changes at the same time, and can cause lots of conflicts with other active PRs. Would you mind removing those style changes from this PR? Feel free to send them in as a separate PR if you like. |
e3f2540
to
1f1ab50
Compare
if os.path.exists(built_wheel_dir): | ||
shutil.rmtree(built_wheel_dir) | ||
os.makedirs(built_wheel_dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to have it close to the code that actually use the directory.
Agreed. But then to be nitpicky, make it |
Just noticed: it's also |
1f1ab50
to
d799b98
Compare
d799b98
to
3d864e7
Compare
to allow different options for auditwheel/delocate, alternative commands and a future Windows equivalent. Fix pypa#191 .
3d864e7
to
0e04faf
Compare
Rebased to fix a conflict. |
CIBW_DELOCATE_COMMAND
env variableCIBW_REPAIR_COMMAND
env variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @nsoranzo ! I've made a few comments inline.
Finally, on the naming, I'd agree with @YannickJadoul and prefer CIBW_REPAIR_WHEEL_COMMAND - would you mind changing it to that? It'll be an infrequently-used option so specific and long is a good compromise. Thank you!
CIBW_REPAIR_COMMAND
env variableCIBW_REPAIR_WHEEL_COMMAND
env variable
Quick thing, still: I'd just made sure that all three platforms follow the same structure/do +- the same steps in the same order (cfr. #209). It's kind of nice to keep that, I think. So just for certainty, since I see some things moving around but I lack the overview: could you have a quick look whether that consistency between Windows & macOS (& Linux, to a certain degree) is still there? |
@YannickJadoul Actually this PR slightly improves the consistency across architectures, I hope. |
@nsoranzo OK, great, then! :-) |
Looking good! Thanks @nsoranzo ! |
to allow specifying the `-L .` option for the auditwheel command. Introduced in pypa/cibuildwheel#211 . Fix pysam-developers#831 .
to allow specifying the `-L .` option for the auditwheel command. Introduced in pypa/cibuildwheel#211 . Fix pysam-developers#831 .
to allow different options to auditwheel/delocate, alternative commands and a future Windows-equivalent.
Fix #191 .
Also fix some PEP-008 issues reported by flake8.