-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Creating virtualenvs with PyPy always warns about a missing LICENSE file #1352
Comments
This seems specific to pypy installed via homebrew, we should be able to retrieve the LICENSE file there as well: |
also seem to happen on my fedora 30 install. |
@m1keil I assume that's pypy packaged by fedora? is there a |
sorry for the mix up. This actually happens with the regular system pip and python for me.
|
@asottile so did we fix this then? |
We did not, I vote just deleting the warning since it seems inconsistent where packagers chose to move the README and in some cases it is completely missing |
All the Pythons distributed with Fedora have this warning. We have the LICENSE file in |
OK, we shall fix this... https://src.fedoraproject.org/rpms/python38/pull-request/33 |
Weirdly, even if
|
We have lib64 (on 64bit arches). |
I'll send a PR. |
Several Linux distributions including Gentoo, Fedora, openSUSE put things in lib64/pythonX.Y instead of lib/pythonX.Y on 64bit architectures (x86_64, aarch64, etc.). This was already respected via the fix_lib64() function, however when virtualenv was searching for Python LICENSE, it was not. Now is the lib64/pythonX.Y patch searched as well and unlike fix_lib64() no checks need to be made, as the patch are tested in sequence. See pypa#1352 (comment)
Several Linux distributions including Gentoo, Fedora, openSUSE put things in lib64/pythonX.Y instead of lib/pythonX.Y on 64bit architectures (x86_64, aarch64, etc.). This was already respected via the fix_lib64() function, however when virtualenv was searching for Python LICENSE, it was not. Now is the lib64/pythonX.Y patch searched as well and unlike fix_lib64() no checks need to be made, as the patch are tested in sequence. See pypa#1352 (comment)
Here: #1382 |
Several Linux distributions including Gentoo, Fedora, openSUSE put things in lib64/pythonX.Y instead of lib/pythonX.Y on 64bit architectures (x86_64, aarch64, etc.). This was already respected via the fix_lib64() function, however when virtualenv was searching for Python LICENSE, it was not. Now is the lib64/pythonX.Y patch searched as well and unlike fix_lib64() no checks need to be made, as the patch are tested in sequence. See #1352 (comment)
The license() builtin tries to read it and virtualenv tries to copy it. See pypa/virtualenv#1352 Up until now, the license() builtin juts felt back to: See https://www.python.org/psf/license/ However it should output the full license text. Virtualenv ~16.6 warns: No LICENSE.txt / LICENSE found in source Technically, it is probably possible to install the package without %license files, but that would simply resort to the previous noncritical behavior. This fix is not critical and hence it doesn't bump release, for easier backporting to all our Python packages.
we'll need to exam again this issue with the rewrite |
This seems to be resolved with the rewrite. |
The license() builtin tries to read it and virtualenv tries to copy it. See pypa/virtualenv#1352 Up until now, the license() builtin juts felt back to: See https://www.python.org/psf/license/ However it should output the full license text. Virtualenv ~16.6 warns: No LICENSE.txt / LICENSE found in source Technically, it is probably possible to install the package without %license files, but that would simply resort to the previous noncritical behavior. This fix is not critical and hence it doesn't bump release, for easier backporting to all our Python packages.
virtualenv/virtualenv.py
Line 1321 in 5e3a70c
The
license()
builtin in PyPy is static, and doesn't have a LICENSE to copy.The text was updated successfully, but these errors were encountered: