-
Notifications
You must be signed in to change notification settings - Fork 0
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
Executable permissions for scripts are reset or are not set #66
Comments
stanislavlevin
added a commit
that referenced
this issue
Apr 9, 2024
Today's Python packaging specification is not clear about making binaries executable on installation from data/scripts/ directory: https://packaging.python.org/en/latest/specifications/binary-distribution-format/ > In wheel, scripts are packaged in {distribution}-{version}.data/scripts/. If the first line of a file in scripts/ starts with exactly b'#!python', rewrite to point to the correct interpreter. Unix installers may need to add the +x bit to these files if the archive was created on Windows. ZipFile in turn, doesn't preserve file permissions in Python: python/cpython#59999 This leads to situation when freshly installed binaries can't be executed. Fixes: #66 Signed-off-by: Stanislav Levin <slev@altlinux.org>
stanislavlevin
added a commit
that referenced
this issue
Apr 9, 2024
Today's Python packaging specification is not clear about making binaries executable on installation from data/scripts/ directory: https://packaging.python.org/en/latest/specifications/binary-distribution-format/ > In wheel, scripts are packaged in {distribution}-{version}.data/scripts/. If the first line of a file in scripts/ starts with exactly b'#!python', rewrite to point to the correct interpreter. Unix installers may need to add the +x bit to these files if the archive was created on Windows. ZipFile in turn, doesn't preserve file permissions in Python: python/cpython#59999 This leads to situation when freshly installed binaries can't be executed. Fixes: #66 Signed-off-by: Stanislav Levin <slev@altlinux.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem:
executable permissions for scripts are reset or are not set.
How to reproduce:
uv
):ZipFile
doesn't preserve file permissions in Python:python/cpython#59999
Today's Python packaging specification is not clear about that:
https://packaging.python.org/en/latest/specifications/binary-distribution-format/
The text was updated successfully, but these errors were encountered: