If you try to start virtualenvwith the environment variable set PYTHONDONTWRITEBYTECODE=true, it will give the following error:
The PYTHONDONTWRITEBYTECODE environment variable is not compatible with setuptools. Either use --distribute or unset PYTHONDONTWRITEBYTECODE.
Why does setuptools require the ability to write bytecode?
I don’t really like having files .pyc, so I like stopping him from writing.
(I am not asking how to get around this: this is trivial: just add PYTHONDONTWRITEBYTECODE=""at the beginning of any command that requires the flag to be canceled or not removed globally)
source
share