1) applying monkeypates to third-party executables
2) read .env-file at startup to your env-vars are automatically available in python/ipython-repl, notebooks, any python-based executable in your venv
3) Add bin-directory of your venv to your PATH without the need to activate.
1) applying monkeypates to third-party executables
2) read .env-file at startup to your env-vars are automatically available in python/ipython-repl, notebooks, any python-based executable in your venv
3) Add bin-directory of your venv to your PATH without the need to activate.
I use it in *every* project since 8 years.
Since last year I switched to a plugin-architecture using entrypoints.
see pypi.org/project/site...
More plugins at github.com/libranet
I use it in *every* project since 8 years.
Since last year I switched to a plugin-architecture using entrypoints.
see pypi.org/project/site...
More plugins at github.com/libranet
github.com/libranet/lib...
I always configure venv-based tools to never write to $HOME
I turn every (non-dev) venv into an isolated application directory. And it works great.
github.com/libranet/lib...
I always configure venv-based tools to never write to $HOME
I turn every (non-dev) venv into an isolated application directory. And it works great.
bin/ -> .venv/bin/
etc/
lib/ -> .venv/lib/
.env
.venv
pyvenv.cfg -> .venv/pyvenv.cfg
var/cache
var/log
var/tmp
bin/ -> .venv/bin/
etc/
lib/ -> .venv/lib/
.env
.venv
pyvenv.cfg -> .venv/pyvenv.cfg
var/cache
var/log
var/tmp
Every venv I create has it own temporary directory and cache-directory at minimum:
bin/
etc/
lib/
.env
pyvenv.cfg
var/cache
var/log
var/tmp
Every venv I create has it own temporary directory and cache-directory at minimum:
bin/
etc/
lib/
.env
pyvenv.cfg
var/cache
var/log
var/tmp
I don't see a problem with having some bash-scripts in a bin-subdirectory and commiting these to the repo,
and have a script to turn this folder into a virtualenv.
I don't see a problem with having some bash-scripts in a bin-subdirectory and commiting these to the repo,
and have a script to turn this folder into a virtualenv.
but also uv cannibalizing the hardcoded .venv-directory,
I'm afraid this will be the new de facto standard. And this will remove various use-cases I've seen in the wild, esp corporate settings. The /usr/local being one example.
but also uv cannibalizing the hardcoded .venv-directory,
I'm afraid this will be the new de facto standard. And this will remove various use-cases I've seen in the wild, esp corporate settings. The /usr/local being one example.
"Virtualenv" or "python -m venv" do not have that behaviour.
"Virtualenv" or "python -m venv" do not have that behaviour.
VIRTUAL_ENV=/usr/local
Not my choice, it works, and I can't change it for the time being.
When trying to switch to uv, it deleted all of /usr/local. Not my best day.
VIRTUAL_ENV=/usr/local
Not my choice, it works, and I can't change it for the time being.
When trying to switch to uv, it deleted all of /usr/local. Not my best day.
- pyvenv.cfg
- lib/pythonx.y
- generated entrypoints in bin
And nothing else. Untill very recently this was the case.
- pyvenv.cfg
- lib/pythonx.y
- generated entrypoints in bin
And nothing else. Untill very recently this was the case.
But for using a package in production, I don't want to deploy to some hidden .venv and then be forced to use symlinks to have logical more sane, structure.
Only recently this become a problem with uv mindlessly deleting .venv-folders.
This is wrong behaviour.
But for using a package in production, I don't want to deploy to some hidden .venv and then be forced to use symlinks to have logical more sane, structure.
Only recently this become a problem with uv mindlessly deleting .venv-folders.
This is wrong behaviour.
Nice overview (thanks to @lukasz.langa.pl by sharing on X)
www.youtube.com/watch?v=GZ5X...
Nice overview (thanks to @lukasz.langa.pl by sharing on X)
www.youtube.com/watch?v=GZ5X...
www.evrsoft.com/company.shtml
www.evrsoft.com/company.shtml