4 ms·
Another Python packaging system? I thought we were done when "wheels" replaced "eggs". ("Eggs", of course, replaced "setup.py" files.)
by Animats 6y ago
Another Python packaging system? I thought we were done when "wheels" replaced "eggs". ("Eggs", of course, replaced "setup.py" files.)
- Caligatio 6y agoThe final output of Poetry is a wheel so it's not an egg/sdist/wheel competitor.
- geofft 6y agoPoetry is a tool to install packages, in whatever form they're in. It's roughly in the same space as pip/easy_install or virtualenvwrapper, but it's really a higher-level tool than anything that is currently standard, which is what makes it worthwhile. (It's in the same space as Cargo, if that helps.) Wheels and eggs are packaging formats, which Poetry (and pip) installs. You can think of poetry as like yum/dnf or apt and wheels/eggs as like .rpm or .deb files. (You can think of pip as like the rpm or dpkg command, in the sense that it's a lower-level tool but it also installs wheels/eggs, but that analogy isn't perfect.) The existence of Poetry does not obsolete either wheels or eggs. Neither wheels nor eggs replaced setup.py files - the standard way of building a wheel is to run "setup.py bdist_wheel". You can think of setup.py as like Makefile. You would not say that tarballs have replaced Makefiles.
- elcomet 6y agoPoetry also builds your package to create the wheel file. So it's more than pip. Check the examples on the websites to learn more about it
- geofft 6y agoYup - I'm familiar with it, I'm just trying to come up with a loose analogy for someone who isn't familiar with Python packaging but has heard things second-hand.
- viraptor 6y agoIf you're familiar with Ruby, a good mapping would be: gem (file format) is like wheel, gem (the command) is like pip, and bundler is like poetry. It just manages / ties everything together.