by dahfizz · 6y ago · 0 comments
Unless I am making a "real" application, I do my best to avoid virtualenvs altogether.
It's an official feature (https://docs.python.org/fr/3/library/zipapp.html) that lets Python execute an entire project bundled into a zip file.
If you don't want to create it by hand, use shiv: https://pypi.org/project/shiv/
It's the best of both worlds.
I think the reason is that something like shiv was missing: it streamlines the process, shows a finish product instead of just telling people "all the thing they can do", and the automatic unzipping solved plenty of problems that you had with alternative like Pex, espacially on windows or with static resources.
So now you have it. Spread the word.