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

tool to create wheel + pc file from binary #50

Open
virtuald opened this issue Sep 27, 2024 · 1 comment
Open

tool to create wheel + pc file from binary #50

virtuald opened this issue Sep 27, 2024 · 1 comment

Comments

@virtuald
Copy link

I'm planning to move all my robotpy projects to meson, but hadn't really figured out the best way to make inter-wheel dependencies work -- so I'm glad I found this!

Background

My dependencies are built and published to a maven-like repo + artifacts. I take those, build pybind11 wrappers around them, and stick it all in a wheel that depends on other wheels (described here).

As part of this move to meson, I think what would make the most sense is for me to write a tool that gets the maven artifact, unzips it, adds a .pc file and entrypoint, and then publishes that wheel to pypi. Then all of my wrapper wheels can just specify the wheel that just has the native dependency in it in their build dependencies, and meson will magically find it and everything works.

The question

It seems to me that there are probably other people that would like to take binary artifacts and repackage them as wheels that can be consumed by something that uses pkg-config.

  • Does such a tool already exist?
  • If not, I'm going to write said tool, because I need it. Is there any interest in that tool living either in this repo, or another pypackaging-native repo?

I'm also open to alternative solutions as well.

@virtuald
Copy link
Author

virtuald commented Oct 14, 2024

I wrote a hatchling plugin to do this, along with some other stuff: https://github.com/virtuald/hatch-pkgconf-meson/tree/main/hatch-mkpkgconf

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

No branches or pull requests

1 participant