Why should setuptools write bytecode?

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)

+5
source share
1 answer

Use the latest version virtualenvand you will not see this error.

+1
source

All Articles