Live data from Hacker News

Ask HN: Venv, virtualwrapper, pipenv, poetry, pdm, oh my

news.ycombinator.com

11–16 of 16 posts

Re: Ask HN: Venv, virtualwrapper, pipenv, poetry, pdm, oh my

#11
post #8

We've been using pipenv + pyenv at work for years, and it's fine to be honest. On Linux, I don't really have a problem with either tool anymore, on Windows it's still a bit buggy. Most of it comes from the pipenv pyenv integration not working automatically. I'd try a couple and find what works best for your workflow. Not saying python package management couldn't be better, but I think that a lot of pipenv's hate come…

I should have mentioned that we have developers on Windows, MacOS, and Linux -- which is possibly where my frustration comes from with the struggles of integrating Windows as a development environment.

On macOS it’s pretty good, just requires a few extra packages and compiler flags for pyenv to work well.

I’ve found pipx to be the most reliable way to manage the installation of pipenv.

Re: Ask HN: Venv, virtualwrapper, pipenv, poetry, pdm, oh my

#13

I ignore these and go straight to software containers (docker, podman, kubernetes,…) because my hammer works well.

So just using pip inside the container? Microsoft is looking to standardize development containers [1], a cleanroom environment where you live while you develop. That container can itself be used as a workbench for then packaging your application into a container of its own for deployment on K8s or what have you.

[1] https://code.visualstudio.com/docs/remote/containers

Re: Ask HN: Venv, virtualwrapper, pipenv, poetry, pdm, oh my

#14

I ignore these and go straight to software containers (docker, podman, kubernetes,…) because my hammer works well.

So just using pip inside the container? Microsoft is looking to standardize development containers [1], a cleanroom environment where you live while you develop. That container can itself be used as a workbench for then packaging your application into a container of its own for deployment on K8s or what have you. [1] https://code.visualstudio.com/docs/remote/containers

Yes, normal standard pip with no risks to break anything.

Re: Ask HN: Venv, virtualwrapper, pipenv, poetry, pdm, oh my

#15
post #2

I don’t personally write Python often, especially not in an enterprise context, but from my (admittedly narrow) understanding all these tools try to do what Nix already does. You could look into that.

You can use Poetry and Nix together with Poetry2nix! [1] [1] https://www.tweag.io/blog/2020-08-12-poetry2nix/

Whoa, now that’s cool. The extent of my experience with Python and Nix is using a shebang line with nix-shell to specify the dependencies of my script, but I can see this being very useful for actual projects. Thank you!
Post reply on HN