summaryrefslogtreecommitdiff
path: root/src/virtualenv/create
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade setuptools and pip (#1939)Bernát Gábor2020-09-104-6/+14
|
* Use unix line-endings in bash activate script (#1924)Siddhant Kumar2020-08-231-2/+3
| | | Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
* Bump pre-commit hooksBernat Gabor2020-07-201-1/+1
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Don't preimport threading early (#1897)Kirill Smelkov2020-07-151-3/+18
|
* Do not write .gitignore if already exists (#1866)Bernát Gábor2020-06-211-8/+10
| | | | | | This ensures that we do not overwrite an existing .gitignore when the target directory is not created by virtualenv. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Implement periodic update feature (#1841)Bernát Gábor2020-06-215-8/+74
| | | Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
* Mark virtual environments ignored for Git (#1825)Bernát Gábor2020-05-121-0/+19
|
* Bump linters (#1823)Bernát Gábor2020-05-125-12/+12
|
* Wrap usage of get_makefile_filename (#1811)Ian Wienand2020-05-041-1/+3
|
* Fix typo in symlink detection (#1803)Anthony Sottile2020-05-021-1/+1
|
* Ensure makefile is present on CPython2 POSIX (#1787)Bernát Gábor2020-04-264-8/+39
|
* Better handling of conflicting --copies and --symlinks (#1785)Bernát Gábor2020-04-251-3/+20
|
* Allow all command line option flags to be used in config file/env-var (#1763)Bernát Gábor2020-04-081-1/+3
| | | | | | | | | | | | | * 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>
* do not allow PYVENV_LAUNCHER to be set (#1749)Bernát Gábor2020-03-252-9/+32
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Do not fail when the pyc files is missing for the host Python 2 (#1741)Bernát Gábor2020-03-191-1/+2
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* amazonlinux support (#1728)Bernát Gábor2020-03-184-26/+53
| | | | | | | | | * Allow testing docker images Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * amazonlinux support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add zip importer test (#1727)Bernát Gábor2020-03-171-1/+4
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix Windows Store support (#1725)Bernát Gábor2020-03-177-33/+96
| | | | | | * Fix Windows Store support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Allow missing .py files if .pyc is present (#1714)David Tucker2020-03-133-5/+29
| | | | | | | | | | | | | | | | | * Allow missing .py files if .pyc is present * Document packaging types we support Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * improve test Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * PyPy requires the standard library source files Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernat Gabor <bgabor8@bloomberg.net>
* macOS Python 3 Framework support (#1711)Bernát Gábor2020-03-134-31/+94
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix py info might be misslead by distutils config (#1705)Bernát Gábor2020-03-101-5/+4
| | | | | | | Ignore configuration file parsing when getting distutils data. Resolves #1663. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* pythonw works as python on Windows (#1693)Bernát Gábor2020-03-081-1/+4
| | | | | | | * pythonw works as python on Windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * foix
* Better handling of loader patch on python 3 (#1698)Bernát Gábor2020-03-061-17/+19
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Handle legacy loaders for pip patch (#1691)Bernát Gábor2020-03-061-5/+17
|
* Support for Python 2 platform that store landmark in platstdlib (#1697)Bernát Gábor2020-03-063-4/+5
| | | | Resolves #1694. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* use import hooks to patch distutils/setuptools (#1688)Bernát Gábor2020-03-044-87/+107
|
* Fix setting PYTHONPATH on Python 2 not working (#1673)Julien Danjou2020-03-032-28/+47
| | | | | | | | | - ensure we do not rewrite the ``PYTHONPATH`` - ensure we respect the ``-E`` flag Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Disable distutils fixup for python 3Bernat Gabor2020-02-261-0/+2
| | | | | | Until https://github.com/pypa/pip/issues/7778 is fixed and released. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* handle application data folder is read only (#1661)Seungmin Ryu2020-02-263-22/+10
| | | | | | | | | | | | | | | | | | | | * fixed FileNotFoundError when directory isn't writable (#1640) - when using docker, if `user_data_dir()` isn't writable directory, `default_data_dir()` use `system temp directory` + `virtualenv`. for example, tempdir is `/tmp`, it use `/tmp/virtualenv` * start making the app-data more explicit and robust Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix docs Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
* Ensure distutils configuration values do not escape virtual environment (#1657)Bernát Gábor2020-02-244-1/+76
| | | | | | | | | | | | | | * Ensure distutils configuration values do not escape virtual environment Distutils has some configuration files where the user may alter paths to point outside of the virtual environment. Defend against this by installing a pth file that resets this to their expected path. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix CI failure due to #pypa/pip/issues/7778 Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix pypy2 builtins are imported as stdlib modules (#1656)Bernát Gábor2020-02-233-13/+32
| | | | | | | | | | | | * fix pypy2 builtins are imported as stdlib modules Resolves #1652. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * test failure Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Fix global site package always being added with bundled macOs python ↵Bernát Gábor2020-02-223-1/+30
| | | | | framework builds (#1653) Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* release 20.0.520.0.5Bernat Gabor2020-02-211-1/+1
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* macOs Python 2 Framework support (#1641)Bernát Gábor2020-02-215-41/+325
|
* Also add executables for pythonX.X under pypy (#1615)Anthony Sottile2020-02-141-1/+2
| | | | | | | | * Also add executables for pythonX.X under pypy * Fix losing libpypy-c.so when pypy executable is a symlink * Skip trying pythonX.X on pypy3.6 7.3.0
* Make aliases relative symlinks (#1610)Anthony Sottile2020-02-131-6/+6
|
* Revert "also disallow altsep beside pathsep inside paths" (#1598)Vincent Philippon2020-02-131-6/+5
| | | | | | | | * Revert "also disallow altsep beside pathsep inside paths" This reverts commit 524d95e782d810243cf9cd344a88711591c94efc. * Test Creator.validate_dest replaces os.altsep by os.sep
* Lower min version of six to 1.9 (#1606)Sorin Sbarnea2020-02-139-23/+24
| | | | | This change should allow installation of virtualenv on systems with older six where their LTS support may prevent them from upgrading it.
* Fix Python 2 Apple framework builds not isolated from global si… (#1588)Bernát Gábor2020-02-121-1/+21
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* require passing a destination directory (#1568)Pradyun Gedam2020-02-111-1/+1
| | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix system executable discovery (#1550)Bernát Gábor2020-02-102-3/+3
| | | | | | | | | | | | | | * fix system executable discovery Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * time to eat our own dogfood Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * seems Path.absolute should not be used Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* rewrite the documentation (#1519)Bernát Gábor2020-02-041-9/+31
|
* Stable order in pyenv.cfg, include-system-site-packages only for ref (#1535)Bernát Gábor2020-02-022-17/+21
| | | | | | | Previously the order was dictionary order depdendent, so not stable accross Python implementations, and we also set the include system site package for all creators, should be only for ref creators. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Better handling of base executable not found #1515Bernát Gábor2020-01-302-3/+5
| | | | | | | 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),
* pth files are not processed on Ubuntu under Python 2 #1517 (#1521)Bernát Gábor2020-01-291-5/+19
| | | | | | | | If the host platfrom and pure library paths differed from the distutils installs ones, we patched the sys.path by appending the missing paths, this did not trigger the pth processing though. Changed to use the site.add_site_dir to solve the problem. Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add a write through filesystem cache with locks for py informat… (#1505)20.0.0b1Bernát Gábor2020-01-281-10/+11
| | | | | | | | | | | | | | | | | | | | * 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>
* support for c-extension builds within virtualenv (#1503)Bernát Gábor2020-01-2712-71/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test include folders - add test to check if it works Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * pypy add lib on Linux Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * debug macos Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * try fix pypy windows Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * fix Windows * fix * fix Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net> * Windows PyPy just does not understand non-ascii PATHS :-( * allow pypy3 to fail Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* separate describe/create - check upfront if can create (#1502)Bernát Gábor2020-01-2122-0/+1219
* 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