* Allow all command line option flags to be used in config file/env-var
Extend config file and environment variables checked for configuration to also
check aliases (e.g.
setting either ``VIRTUALENV_COPIES`` or ``VIRTUALENV_ALWAYS_COPY`` will work).
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix CI
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
This only manifests on old platforms, but as we still support them
makes sense to provide better error messages, and relax a bit our
build requirements.
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Improve the base executable discovery mechanism:
- print at debug level why we refuse some candidates,
- when no candidates match exactly, instead of hard failing fallback to the closest match where the priority of matching attributes is python implementation, major version, minor version, architecture, patch version, release level and serial (this is to facilitate things to still work when the OS upgrade replace/upgrades the system python with a newer version than what the virtualenv host python was created with),
- always resolve system_executable information during the interpreter discovery, and the discovered environment is the system interpreter instead of the venv/virtualenv (this happened before lazily the first time we accessed and caused reporting that the created virtual environment is of type of the virtualenv host python version, instead of the system pythons version - these two can differ if the OS upgraded the system python underneath and the virtualenv host was created via copy),
* add a write through filesystem cache with locks for py information queries via sys executables
this speeds up significantly the creation process, as calling
subprocesess is at least an order of mangitued slower than reading the
information from a json dump
We also now default to the built-in mechanism
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* make file lock reentrant and thread safe
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* start
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* test for Windows
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* test for Windows
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix Windows symlink cache