Skip to content
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

Support passing dist-info-dir to bdist_wheel #612

Closed

Conversation

pelson
Copy link

@pelson pelson commented Apr 24, 2024

Support passing dist-info-dir to bdist_wheel, enabling setuptools to handle prepare_metadata_for_build_wheel correctly as per PEP-517. Closes #611

I don't know what the implications of this if the metadata is wildly different - for example, within bdist_wheel there is a filename calculation - currently the metadata used for such calculations is from egg-info, not from the given dist-info. For my case, that was good enough, and I wasn't able to find a satisfying hook to disable egg-info calculation, and use that for distribution metadata. I would happily take advice on these.

@pelson pelson force-pushed the feature/pep517-prepare-metadata-support branch 2 times, most recently from 108b218 to 09316a5 Compare April 24, 2024 12:22
…handle prepare_metadata_for_build_wheel correctly as per PEP-517. Closes pypa#611
@pelson pelson force-pushed the feature/pep517-prepare-metadata-support branch from 09316a5 to 2f77339 Compare April 24, 2024 12:22
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 71.04%. Comparing base (0a4f40e) to head (cb140a6).
Report is 12 commits behind head on main.

Files Patch % Lines
src/wheel/bdist_wheel.py 12.50% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
- Coverage   71.28%   71.04%   -0.24%     
==========================================
  Files          13       13              
  Lines        1069     1074       +5     
==========================================
+ Hits          762      763       +1     
- Misses        307      311       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pelson
Copy link
Author

pelson commented May 24, 2024

Closing since it is no longer in scope for wheel. (see #611 (comment))

@pelson pelson closed this May 24, 2024
@pelson pelson deleted the feature/pep517-prepare-metadata-support branch September 13, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bdist_wheel should be able to work with pre-computed dist-info, per PEP-517
1 participant