summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ensurepip.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42856: Add --with-wheel-pkg-dir=PATH configure option (GH-24210)Victor Stinner2021-01-201-9/+60
| | | | | | | | | | | | | Add --with-wheel-pkg-dir=PATH option to the ./configure script. If specified, the ensurepip module looks for setuptools and pip wheel packages in this directory: if both are present, these wheel packages are used instead of ensurepip bundled wheel packages. Some Linux distribution packaging policies recommend against bundling dependencies. For example, Fedora installs wheel packages in the /usr/share/python-wheels/ directory and don't install the ensurepip._bundled package. ensurepip: Remove unused runpy import.
* bpo-40448: ensurepip: Do not use cache (GH-19812)Krzysztof Konopko2020-06-151-8/+8
| | | | | | | | | | | | | | | ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the version of those modules bundled with Python. The internal PIP installation routine by default temporarily uses its cache, if it exists. This is undesirable as Python builds and installations may be independent of the user running the build, whilst PIP cache location is dependent on the user's environment and outside of the build environment. At the same time, there's no value in using the cache while installing bundled modules. This change disables PIP caching when used in ensurepip.
* bpo-31351: Set return code in ensurepip when pip fails (GH-3626)Igor Filatov2017-09-211-2/+17
| | | | Previously ensurepip would always report success, even if the pip installation failed.
* Allow ensurepip even when ssl is unavailableDonald Stufft2016-11-031-65/+0
|
* Merge the fix for #24267Donald Stufft2015-06-021-5/+20
|\
| * Closes #24267 - Does not check version on ensurepip uninstallDonald Stufft2015-06-021-5/+20
| | | | | | | | | | | | Ensure that the uninstall helper for Windows passes the proper flags to pip to prevent it from checking PyPI if the pip that we're currently attempting to uninstall is the latest verison.
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-1/+1
|/ | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* use the called property of the run_pip mock rather than an assertion method ↵Benjamin Peterson2014-04-161-8/+8
| | | | that doesn't exist
* Close #20757: return success for skipped pip uninstallNick Coghlan2014-02-281-2/+4
| | | | | | | | The 3.4rc2 Windows uninstaller would fail if pip had been updated to a version that didn't match the version installed by ensurepip. This skip is no longer treated as an error, so an updated pip ends up being handled like any other pip installed package and is left alone by the CPython uninstaller.
* Issue #19744: Handle missing SSL/TLS in ensurepipNick Coghlan2014-02-141-0/+8
| | | | | - now also allows POSIX installation with SSL/TLS missing - a goal for pip 1.6 is to allow local use without SSL/TLS
* Close #20053: ignore default pip config settingsNick Coghlan2014-02-041-0/+16
| | | | | | ensurepip now sets PIP_CONFIG_FILE to os.devnull before import pip from the wheel file. This also ensures venv ignores the default settings when bootstrapping pip.
* Update pip to the released 1.5Donald Stufft2014-01-021-8/+8
|
* Issue #19744: improve ensurepip error when ssl is missingNick Coghlan2013-12-231-0/+57
|
* Issue #19728: fix ensurepip name clash with submoduleNick Coghlan2013-12-231-23/+60
| | | | | Also added refactoring and added basic tests for the argument parsing in both ensurepip._main and ensurepip._uninstall._main.
* Issue #19734: ignore pip env vars in ensurepip._uninstallNick Coghlan2013-12-231-0/+14
|
* Close #19734: ignore pip env vars in ensurepipNick Coghlan2013-12-231-0/+8
|
* Issue #19728: add private ensurepip._uninstall CLINick Coghlan2013-11-301-0/+75
| | | | | | | | | | | | | | MvL would like to be able to preserve CPython's existing clean uninstall behaviour on Windows before enabling the pip installation option by default. This private CLI means running "python -m ensurepip._uninstall" will remove pip and setuptools before proceeding with the rest of the uninstallation process. If the version of pip differs from the one bootstrapped by CPython, then the uninstallation helper will leave it alone (just like any other pip installed packages)
* Avoid global side effect in test_ensurepipNick Coghlan2013-11-131-3/+8
|
* Close #19406: Initial implementation of ensurepipNick Coghlan2013-11-111-0/+123
Patch by Donald Stufft and Nick Coghlan