-
Notifications
You must be signed in to change notification settings - Fork 12
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
_find_and_load_licence()
in pre-compile might be unsafe
#50
Comments
I think when I was developing this, I noted the results in
Could we defer this decision until after PEP 639 is approved or rejected 😅? What would be the plan of Gentoo to handle that standard? PEP 639 (if approved) will explicitly make it reliable for packages to query for its own license files. So far the text of the PEP reads like the following (emphasis are mine):
|
Sounds like another random "change everything every half of year" standard that's pushed with zero consideration for world outside virtualenvs and that doesn't care about anyone who doesn't have time to read all the new PEPs proposed every month. |
Luckily this one has been proposed and is under discussion for over 2 years now, so the community had some time to engage. |
If only I had hours of free time to read the existing thread… unless someone summarized it? |
In ALTLinux we deduplicate common LICENSE files.
|
In Fedora RPM packages, we keep the LICENSE files, but we drop RECORDs, which is allowed by PEP 627 and the current PyPA specification as well. The code here breaks because of that. To reproduce, run:
|
Basically, what I'm thinking of is:
i.e. both the package license file and the vendored fastjsonschema's LICENSE file matches this:
and I think it might be UB that the license file from dist-info is returned first.
That said, in Gentoo we remove the
LICENSE*
files from .dist-info since they are redundant to our license metadata, so this doesn't work correctly at all. Could you perhaps install the license file directly as part of package data, and use it similarly to how FJS's license is grabbed?The text was updated successfully, but these errors were encountered: