News for hackers. Stuff that matters.
Re:Python Best Practices for a New Project in 2021 by gjvc on Tuesday July 06, 2021 @07:54AM (#27747176)
I was overly brief here.

I meant to say "I look to see how they are going to deploy and use the virtualenv they have created."

Hint: what works in development -- just telling people to type "source .venv/bin/activate.sh" or such, doesn't fly in an unattended environment.

All that it requires, of course, is a bin/venv-python wrapper (bash) script to reference the created .venv/ directory, so this is hardly ground-breaking stuff, but as I mentioned originally, this (crucial) section is missed every time.

I use a minimal-but-complete pairing of venv and pip, and a couple of location-independent wrapper scripts, and I can run things the same across all environments.

There are no comments on this comment yet.