-
Notifications
You must be signed in to change notification settings - Fork 151
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
WheelFile extract does not preserve permissions #608
Comments
There's the fundamental, underlying issue of the wheel standard not having explicit support for file permissions (as those are platform specific). I'm personally convinced that such support would be useful, but I think it needs to be added to the standard. I don't have the bandwidth available to drive such a change myself though. |
Will you be open to a PR that will apply the same fix as in unpack, to make the behavior the same? |
Yeah, sure. |
Closing as the |
In issue #514, the command line for
wheel unpack
was fixed to preserve executable bit for files.wheel/src/wheel/cli/unpack.py
Line 24 in 0a4f40e
But this issue still exists when extracting files programmatically.
For example:
The issue is of course rooted in the same problem. As
extractall
andextract
methods inherit from zipfile.Maybe it will be better to override these methods for
WheelFile
and fix the permissions issue there, instead of in theunpack
command?Will you be open for a PR for such a change?
The text was updated successfully, but these errors were encountered: