-
Notifications
You must be signed in to change notification settings - Fork 144
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
auditwheel 5.1.0: policy.json not installed when dist-info created first / when running from git tarball #321
Comments
With 5.0.0, this no longer happens. Not sure if fixed or just flaky. |
most things changed with 5.0.0 w.r.t. the way auditwheel is built/layout/tested so I'd say it's been fixed in the process. |
With 5.1.0, this strikes back again. |
Installing from a downloaded git tarball (because sdist does not have tests):
|
OK, I think that the files might just be ignored because they're not tracked by SCM in the git tarball. It might have been a bit much to remove the tests from the SDist (there's been some discussion about this on discuss as a generic thing) but as they're not needed for installation and quite large, they've been removed. I'll fix the issue for installation from a git tarball for sure. I will can re-add tests in the SDist as well then. |
Indeed. I've always tried to provide a Fedora-less reporducers for you that I forgot to mention that.
I have no preference, expect that with setuptools_scm, I need to manually set Thank you! |
Let's re-add tests to the SDist also then. |
hopefully, this is now fixed in 5.1.1. |
Similarly to pypa/auditwheel#321 I was struggling when we package this in Fedora. The fact is that we re-generate the dist-info with `prepare_metadata_for_build_wheel` hook and when the files are not mentioned here, they are omitted.
When I run the tests over installed auditwheel 4.0.0 from source, It fails with:
The policy.json file does not appear to be installed.
I was wondering why the official wheel has it.
My observations so far are:
prepare_metadata_for_build_wheel
hook first, it deletes the egg-info a creates dist-info, policy.json is not installedexport PBR_VERSION=4.0.0
, policy.json is not installedIs there a way to make policy.json always installed? Should it be listed somewhere explicitly as a data file?
The text was updated successfully, but these errors were encountered: