I would like to set some environment variables when I activate a virtual environment.
Up to now I modify the created bin/activate. But that’s not nice, because:
- this file is not stored in version control
- changing it is manual work
- it works only for Linux (not for Windows)
- It does not work if I call a script which was installed via setup.cfg [scripts]
Any idea how this could be solved.
I am lucky, and know that I have Python >= 3.8.