Re:Makesite.py – Simple, lightweight, and magic-free static ...
by kalia35 on Sunday November 24, 2019 @04:57PM
(#21623719)
Well in ten years I have never had a nuked server by pip or virtualenv. I am sure there are edge cases but that must be true for all the ways of deploying stuff. I guess the ones you know well appear simple to you !
[ Parent
| on HN ]
Re:Makesite.py – Simple, lightweight, and magic-free static ...
by jacquesm on Sunday November 24, 2019 @05:06PM
(#21623775)
I've had a production server be hosed by running 'letsencrypt-auto'. My bad I guess but still, that's one that I really did not see coming.
Re:Makesite.py – Simple, lightweight, and magic-free static ...
by StavrosK on Sunday November 24, 2019 @05:19PM
(#21623856)
I kind of agree with both of you. I don't think Python deployment is that bad, as most modern managers get it right (I prefer Poetry nowadays). However something like letsencrypt-auto, which AFAIK installs its own dependencies, is not something I'd run. I've actually never used it precisely because it's too magical. Programs shouldn't install their own dependencies anywhere outside of a virtualenv.
Re:Makesite.py – Simple, lightweight, and magic-free static ...
by kalia35 on Monday November 25, 2019 @11:45AM
(#21629933)
Does certbot do the same ? I don’t use either so I can’t tell.
I strongly agree that any python program must install its dependencies in a virtualenv. One could even argue that this principle could be extended to any software !
Re:Makesite.py – Simple, lightweight, and magic-free static ...
by jklehm on Sunday November 24, 2019 @08:42PM
(#21624821)
Have you heard of our Lord and Savior pipx? Solves the python tool isolation issue nicely.
Re:Makesite.py – Simple, lightweight, and magic-free static ...
by StavrosK on Sunday November 24, 2019 @08:51PM
(#21624854)
I haven't used it, I use virtualfish which does a great job as well.