pip2pi icon indicating copy to clipboard operation
pip2pi copied to clipboard

Wheel generation in pip2pi

Open prophile opened this issue 9 years ago • 5 comments

It would be great to have some kind of --wheel option which generates wheels where only source packages are downloaded.

prophile avatar Feb 27 '15 12:02 prophile

I second this. I need to generate wheels as well instead of just downloading tar.gz files.

offero avatar Oct 15 '15 19:10 offero

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!

wolever avatar Sep 21 '16 21:09 wolever

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.

colinhoglund avatar May 05 '17 02:05 colinhoglund

This would be very handy; has anyone looked at https://github.com/wolever/pip2pi/pull/65 to see if it is save-able.

jayvdb avatar Dec 16 '19 12:12 jayvdb

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.

colinhoglund avatar Jan 04 '20 18:01 colinhoglund