pip2pi
pip2pi copied to clipboard
Wheel generation in pip2pi
It would be great to have some kind of --wheel
option which generates wheels where only source packages are downloaded.
I second this. I need to generate wheels as well instead of just downloading tar.gz files.
That would be awesome!
Unfortunately I don't know off the top of my head how to do this… but if you can make suggestions I'd be more than happy to investigate them!
I added the --build-wheels
option to pip2tgz
and pip2pi
in my fork https://github.com/wolever/pip2pi/compare/master...colinhoglund:master.
When this option is enabled it simply runs pip wheel
on the passed in packages. This is not terribly efficient since the command pip2pi /tmp/packages some_package -w -z
would make three different calls to pip. However, any alternative would likely break existing functionality.
Also, adding this functionality makes the entry_point pip2tgz
somewhat confusing (since it can also build wheels), but changing that also has compatibility implications.
I'd appreciate any feedback/recommendations. Also, let me know if this looks useful and I can submit a PR.
This would be very handy; has anyone looked at https://github.com/wolever/pip2pi/pull/65 to see if it is save-able.
This would be very handy; has anyone looked at #65 to see if it is save-able.
Happy to reopen if the maintainers are interested in merging. However, I am no longer using this code as I ended up writing my own tool that separates the concern of building the package index and relies on pip
itself to handle package building.