question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: hatchling should implement the prepare_metadata_for_build_wheel hook

See original GitHub issue

In Fedora Linux, the prepare_metadata_for_build_wheel hook is used to generate a package’s runtime requirements to use as build-time RPM dependencies, which is helpful for ensuring everything is in place to run the tests. Since hatchling does not implement this hook, it’s not possible to do this for hatchling or for projects that use it as a build backend. The most popular Python build systems (setuptools, poetry, flit, build, etc.) do support this hook.

This is just an inconvenience, and can be worked around by some manual effort or project-specific scripting hacks, but it would be a helpful feature if it’s practical to implement.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
musicinmybraincommented, Mar 21, 2022

@musicinmybrain If you wish to experiment with building the wheel in =generate_buildrequires, open an RFE for pyproject-rpm-macros. I bet it’s actually doable somehow.

Thanks. Currently, there are three packages in Fedora that would benefit: python-hatchling, python-userpath, and hatch (once 1.0 is released). For now, I think that I’m personally happier maintaining the scripted workarounds in these packages than figuring out the implications and caveats of building the wheel in %generate_buildrequires in the general case.

If hatch/hatchling becomes quite popular, or if other build systems make the same choice not to offer this hook, then it might become much more beneficial to figure out how to deal with this in %pyproject_buildrequires.

I’ll go ahead and close this issue. Thanks for considering and investigating it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: Keyed Hooks · Issue #15893 · facebook/react
The rules are the following: Hooks can only be called at the top level from custom hooks or React components; The same hooks,...
Read more >
Hookmark Feature Requests
Topic Replies Views Activity About the Hookmark Feature Requests category 0 281 December 19, 2020 iOS Integration 2 58 December 17, 2022 Support for Logic Pro?...
Read more >
Feature Request Template: How to Manage Suggestions at ...
Streamline and organize user feedback with this free feature request template. Available in Google Docs and Sheets (no email required).
Read more >
Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >
Feature request: hooks for get_title - WordPress.org
I'm trying to remove the link (the tag A in HTML) from the post type carousel. Digging into the code i've saw that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found