4 ms·
How we improved Python packaging and distribution
- af3 13y agoGeez, installation of the enterprise python software seems to be very complicated...
- sebastiank123 13y agoNow it’s not anymore thanks to the Installer and all the improvements we did (as explained at the blog post). But normally it is, yes.
- q845712 13y agopackaging and distribution are definitely python's weak points... for deploying to (internal) servers i've really been liking docker.
- Demiurge 13y agoI have worked with PECL, CPAN, and I find pip to be quite easy and virtualenv pretty cool. Arguably npm is better, but relatively speaking, I think it is py2/3 split that is pythons weakest point.
- j-kidd 13y agoHere's my old school setup: Deployment: `easy_install -U` from a local pypi Packaging: `setup.py bdist_egg` and `setup.py bdist_wininst` Dependencies: declare in setup.py, fetch via yolk To test if everything works, just create a blank virtualenv and easy_install. This has been working fine for me for years on Linux and Windows.
- sebastiank123 13y agoDo packages with dependencies in C still require compiling during pip install?
- mmerickel 13y agoWhile pip does not support binary eggs, easy_install still does. If you want binary distribution with pip you need to use wheels (as you are, of course).
- sandGorgon 13y agoCan you talk about Windows python packaging - I have been struggling with some of that for some time. Did you ever have to package stuff like DLLs as part of your code?
- jlarocco 13y agoSeems like a bad idea to delete the existing sandbox before downloading everything and installing. A better idea is to move it to a temp location in the first step, and only delete it after the new version has installed correctly.
- sebastiank123 13y agoGood idea, I put it on the list.
- Demiurge 13y agoI still install binary eggs and easy_install occasionally. Why didn't those fit in with pip?
- mmerickel 13y agoFor hysterical reasons, pip has never supported binary eggs. Wheels are the replacement of the future!