-
Notifications
You must be signed in to change notification settings - Fork 264
Hook to replace auditwheel/delocate/[windows equivalent that doesn't exist yet] #191
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
Comments
@zackw I'm a bit in doubt here, because Could you motivate a bit further why you need it? And why, if your use case is quite unique anyway, you run your script after |
Running the hypothetical script after I don't myself need to override auditwheel or delocate on their respective platforms, but I could see someone working on a tool like those wanting it, and it would be weird to have a hook on Windows only. |
Right, I should have thought of that possibility; sorry!
Minor detail is that you would be testing on the same platform as you have built, so maybe @joerick Any thoughts? A PR shouldn't be too hard, if you have any intuition on where you'd want to go with this. |
@zackw, The override of the As for a PR proposition, I'd use |
I also need this to allow to specify an option for auditwheel, so I started working on this and I have working code which I just need to clean up. |
@nsoranzo Which options do you need? Maybe they should be settable through |
@YannickJadoul I need |
@nsoranzo Thanks! :) OK, that's a bit of a corner-case indeed, it seems. A bit funny that setting the |
to allow different options to auditwheel/delocate, alternative commands and a future Windows-equivalent. Fix pypa#191 .
to allow different options to auditwheel/delocate, alternative commands and a future Windows-equivalent. Fix pypa#191 .
to allow different options for auditwheel/delocate, alternative commands and a future Windows equivalent. Fix pypa#191 .
to allow different options for auditwheel/delocate, alternative commands and a future Windows equivalent. Fix pypa#191 .
to allow different options for auditwheel/delocate, alternative commands and a future Windows equivalent. Fix pypa#191 .
I would like a hook that would allow me to run a command of my own in place of the
auditwheel
ordelocate
invocation (on Linux or MacOS respectively), or at the point in the process where an equivalent tool would be invoked on Windows, if one existed.My primary reason for wanting this is that I need the equivalent tool that doesn't yet exist for Windows. My package is simple enough that I can probably kludge together something that works well enough for me, but I need a way to make cibuildwheel run it.
A plausible interface would be: environment variables named
CIBW_FIXUP_WHEEL_${PLATFORM}
that take the name of a program. This program will be invoked with two arguments: the absolute pathname of a wheel to process, and the absolute pathname to write the processed filename to. On Linux the default is a wrapper forauditwheel
, on MacOS the default is a wrapper fordelocate
, and on Windows it'scopy
.The text was updated successfully, but these errors were encountered: