3 ms·
Can someone explain the situation with eggs and all the installation utilities? After years of programming in python, I still don't understand why everyone make
by StavrosK 14y ago
Can someone explain the situation with eggs and all the installation utilities? After years of programming in python, I still don't understand why everyone makes such a huge deal of installation, which is basically copying things somewhere in the PYTHONPATH.
- lloeki 14y agoFirst, this does not require code to execute (which setuptools require). Second, the problem is to know what to copy, or rather what to get. even when it's pure python it can be a problem (e.g py2 vs py3) and it's even more of one with e.g C extensions, where you have a choice of building it from source (thus requiring gcc and all build dependencies such as headers) or getting a pre-built binary tied to a given platform. Ruby gems support that since quite some time, and it's a bliss to install e.g the libv8 gem in a few seconds vs a lengthy build. [0]: https://rubygems.org/gems/libv8/versions https://rubygems.org/gems/libv8/versions
- StavrosK 14y agoOh, so it's more of an improvement rather than "eggs are horribly broken". I think I'm confused with the "easy_install vs pip" thing, where I also don't see much of a difference. Easy binary retrieval sounds fantastic, though.
- addlepate 14y agoI'm pretty new to Python and Django, and maybe someone more experienced can explain it better, but installation seems really brittle to me. Every few weeks I run into some silly problem like, I need this package, but it depends on an older version of distutils or setup-whatever, so trying to install it fails until I get that, but then I have to uninstall that after getting the package or the rest of the packages I want won't install right... kind of a nightmare. Usually it doesn't take a super long time to resolve but there's never any rhyme or reason, just install and uninstall and easy_install and pip and so on until it's happy so I can get on with my work. It seems like this proposal would help matters. I hope.
- slurgfest 14y agoIf you can get by just using pip then there is no need to worry about eggs
- qznc 14y agoA somewhat summarizing article about Python-packaging: http://lucumr.pocoo.org/2012/6/22/hate-hate-hate-everywhere/ http://lucumr.pocoo.org/2012/6/22/hate-hate-hate-everywhere/
- StavrosK 14y agoThat clarifies things, thanks. I had read it before, but I needed a refresher.