The fact that we had a weird combination of python and libraries took us towards Docker. And we have never looked back. For someone trying out building python deployment packages using deb, rpm, etc. I really recommend Docker.
How We Deploy Python Code
11–20 of 129 posts
Re: How We Deploy Python Code
#12conda works pretty well.
Re: How We Deploy Python Code
#13https://www.datadoghq.com/blog/new-datadog-agent-omnibus-tic...
It's more complicated than the proposed solution by nylas but ultimately it gives you full control of the whole environment and ensure that you won't hit ANY dependency issue when shipping your code to weird systems.
Re: How We Deploy Python Code
#14Re: How We Deploy Python Code
#15The fact that we had a weird combination of python and libraries took us towards Docker. And we have never looked back. For someone trying out building python deployment packages using deb, rpm, etc. I really recommend Docker.
They specifically called that out in the article with an entire section called "just use docker".
Re: How We Deploy Python Code
#16conda works pretty well.
Agreed (although biased since I used to work at Continuum.) I am wondering what others think of conda?
Re: How We Deploy Python Code
#17Highly recommend FPM for creating packages (deb, rpm, osx .pkg, tar) from gems, python modules, and pears. https://github.com/jordansissel/fpm
That seems like a neat tool. I wonder if you could combine it with the sandboxing that dh-virtualenv provides to get the best of both worlds?
One of the significant tradeoffs to this approach is you lose the carefully-crafted tree-of-dependencies that the distros favor, so it makes the package pretty much automatically unacceptable to package maintainers.
However, being able to have install instructions that amount to "yum/apt-get install " is pretty great.
I am hoping for an app/container convergence at some point, but we might need to drop the fine-grained dependency dream and have them be more self-contained, like Mac OS X apps.
Re: How We Deploy Python Code
#18Re: How We Deploy Python Code
#19Earlier quoted context omitted.
They specifically called that out in the article with an entire section called "just use docker".
To be fair, what didn't work for Nylas might well not be an issue for others. There's definitely more than one way to skin a cat, especially in the Python world.
Re: How We Deploy Python Code
#20conda works pretty well.