-
Notifications
You must be signed in to change notification settings - Fork 122
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
Is it possible to control compression for wheels built with the help of build
frontend?
#258
Comments
This is not possible per packaging standards python adopted. The pep 517 clearly states both sdist and wheel must be compressed via tar.gz and zip format respectively. |
It doesn't say anything about compression within wheels. |
Because that's already defined as zip within the earlier https://www.python.org/dev/peps/pep-0427/#abstract |
They are asking if they can change the compression level - not the format. You can do this with |
@layday, thank you. that works (for setuptools-based projects). -C "--global-option=--compression=stored" though doesn't, and it is a bug in setuptools, that worths fixing. @gaborbernat, it still would make sense to define a single interface to control compression in wheels in all backends. The easiest to implement way is, of course, an env variable read from |
Flit and Poetry don't even use the wheel package - there is no path to adding a generic wheel compression option.
|
I'd like to be able to create wheels without compression - I'll still will install them on the same machine using pip after that. I have tried
-C--compression=stored
without any success.python3 ./setup.py bdist_wheel --compression=stored
worked as intended.I am not very sure whoose bug it is, setuptool's, or wheel's, but there are other build backends, and, so to control what compression is used, an interface at least is needed.
The text was updated successfully, but these errors were encountered: