summaryrefslogtreecommitdiff
path: root/src/pip/_internal/utils
Commit message (Collapse)AuthorAgeFilesLines
* Add function to check hashes against known digestsStéphane Bidoul2023-04-141-0/+7
|
* Remove setup.py install legacyStéphane Bidoul2023-03-312-74/+0
|
* Don't fallback to setup.py install when build failedStéphane Bidoul2023-03-311-12/+0
|
* Merge pull request #11871 from sbidoul/always-use-pep517-when-wheel-absent-sbiStéphane Bidoul2023-03-272-26/+0
|\ | | | | Always use pep 517 when the 'wheel' package is absent
| * Always use pep 517 when the 'wheel' package is absentStéphane Bidoul2023-03-272-26/+0
| |
* | Fix type of config_settings argumentsStéphane Bidoul2023-03-271-8/+11
|/
* Remove support for the deprecated --install-optionsStéphane Bidoul2023-03-182-49/+2
|
* --no-binary does not imply setup.py install anymoreStéphane Bidoul2023-03-121-13/+0
|
* Update vendored `pkg_resources`Pradyun Gedam2023-02-041-0/+109
|
* Merge pull request #11663 from uranusjr/pep-668Tzu-ping Chung2023-01-181-2/+18
|\
| * Isolate EXTERNALLY-MANAGED parsing logicTzu-ping Chung2023-01-031-12/+4
| | | | | | | | This makes the parser easier to test.
| * Use ExternallyManagedEnvironment to show errorTzu-ping Chung2023-01-031-47/+15
| | | | | | | | | | This moves most of the displaying logic into the exception class so it can better leverage DiagnosticPipError and Rich functionalities.
| * Check EXTERNALLY-MANAGED in install and uninstallTzu-ping Chung2023-01-031-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the PEP 668 logic to 'pip install' and 'pip uninstall'. Are there any other commands that may need it? This implementation disables the check is any of --prefix, --home, or --target is provided, since those can indicate the command does not actually install into the environment. Note that it is still possible the command is still modifying the environment, but we don't have a way to stop the user *that* determined to break the environment anyway (they can always just use those flags in a virtual environment). Also not sure how best this can be tested.
* | Enable strict optionals in egg_link codeTzu-ping Chung2023-01-171-5/+2
|/ | | | | Newer typeshed correctly annotates sysconfig.get_path() to return str so this just works now.
* Replace `pep517` with `pyproject_hooks`Pradyun Gedam2022-12-282-5/+5
| | | | The `pep517` package has been superseded by a new package.
* Name virtualenv<20 as "legacy"Tzu-ping Chung2022-10-281-6/+6
| | | | Well they are. At least not "regular" anymore.
* Merge pull request #11452 from sbidoul/deprecate-no-binary-imply-pip-installStéphane Bidoul2022-09-251-2/+15
|\ | | | | Deprecate --no-binary implying setup.py install
| * Deprecate --no-binary implying setup.py installStéphane Bidoul2022-09-171-2/+15
| |
* | Set deprecation deadlinesStéphane Bidoul2022-09-171-2/+2
|/
* Merge pull request #11318 from q0w/check-binary-exeTzu-ping Chung2022-08-311-3/+8
|\
| * Check if binary_executable existsq0w2022-07-281-3/+8
| |
* | fixupshauntsaninja2022-08-121-1/+1
| |
* | Use --no-implicit-optional for type checkinghauntsaninja2022-08-122-2/+2
| | | | | | | | | | | | | | | | | | This makes type checking PEP 484 compliant (as of 2018). mypy will change its defaults soon. See: https://github.com/python/mypy/issues/9091 https://github.com/python/mypy/pull/13401
* | Deprecate setup.py install fallback when wheel package is absentStéphane Bidoul2022-08-061-0/+14
| |
* | Refactor legacy_install_reasonStéphane Bidoul2022-08-061-0/+41
| |
* | Revert "PipDeprecationWarning subclass DeprecationWarning"Stéphane Bidoul2022-07-311-1/+1
|/ | | | This reverts commit f1bc96a4a336e2b8889269aec046ac4044e4b46c.
* Merge pull request #11195 from ↵Stéphane Bidoul2022-07-101-25/+26
|\ | | | | | | | | pradyunsg/distutils-replace-fancygetopt-with-getopt Replace `distutils.fancy_getopt` with `getopt`
| * Replace `distutils.fancy_getopt` with `getopt`Pradyun Gedam2022-07-081-25/+26
| | | | | | | | | | This eliminates one location where distutils may be imported on Python 3.12+, by replacing the logic with mostly equivalent logic.
* | PipDeprecationWarning subclass DeprecationWarningTzu-ping Chung2022-07-041-1/+1
|/ | | | | This makes it easier for users to use Python's -W flag to suppress deprecation warnings emitted by pip.
* Fix types for logging Rich objectsPradyun Gedam2022-05-221-3/+5
|
* Revert "Filter available distributions using hash declarations from ↵Pradyun Gedam2022-05-032-17/+0
| | | | | | constraints files (#10962)" This reverts commit 0c284520c6d068cb25ac89d9dbee0456c2eba23a.
* Merge pull request #11059 from pfmoore/config_settingsPaul Moore2022-04-291-0/+91
|\ | | | | Add a UI to set config settings for PEP 517 backends
| * Call the PEP 517 backend with the requirement's config settingsPaul Moore2022-04-211-0/+91
| |
* | Better accomodate for case-insensitive file systemsPradyun Gedam2022-04-231-3/+8
| |
* | Add a way to get a simpler invocation of pipPradyun Gedam2022-04-221-0/+47
| | | | | | | | | | This makes it possible to provide more terse suggestions that are still correct, depending on the user's environment.
* | Rename `[present-diagnostic]` to `[present-rich]`Pradyun Gedam2022-04-222-6/+7
|/ | | | | | This makes it more reasonable to use a rich renderable for regular logging messages, instead of only using it for the diagnostic error messages.
* Replace Iterator[T] with Generator[T,None, None] (#11007)q0w2022-04-095-12/+15
| | | Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
* Drop out-of-tree/in-tree build transition flagsPradyun Gedam2022-04-081-29/+0
| | | | | | These were intended to help users transition when the default behaviour changed to no longer perform out-of-tree builds. The transition is now considered complete.
* Update pre-commit hooksHenrich Hartzer2022-04-044-7/+8
| | | | Co-Authored-By: q0w <43147888+q0w@users.noreply.github.com>
* Merge pull request #10560 from pradyunsg/fix-protect-pip-on-windowsPradyun Gedam2022-03-181-3/+3
|\ | | | | Fix the protect-pip-on-windows logic
| * Use f-strings for executable namesPradyun Gedam2022-03-131-2/+2
| |
| * Fix the protect-pip-on-windows logicPradyun Gedam2022-02-261-3/+3
| | | | | | | | The names for the executables does not contain a `.exe` suffix anymore.
* | Filter available distributions using hash declarations from constraints ↵q0w2022-03-162-0/+17
|/ | | | files (#10962)
* Double-escape paths on WindowsPradyun Gedam2022-01-251-2/+4
| | | | | This helps ensure that they aren't improperly handled due to the newer string-in-string design for the setuptools invocation script.
* Pacify unit testsPradyun Gedam2022-01-252-2/+2
|
* Improve the setuptools caller scriptPradyun Gedam2022-01-251-7/+9
|
* Add diagnostics to `InstallationSubprocessError`Pradyun Gedam2022-01-251-48/+20
| | | | | | This more clearly states where the error came from, presents it in a more approachable format with context provided for what this error is related to.
* Improve our setuptools shimPradyun Gedam2022-01-251-14/+38
| | | | | | | | | Modernise the shim, to account for the Python 3.2+ support matrix. This also presents clearer error messages on failures, the included comment helps inform users about why this shim exists and the traceback now explicitly mentions `<pip-setuptools-shim>` to make it clearer to users that this shim exists.
* Require every `call_subprocess` call-site to pass `command_desc`Pradyun Gedam2022-01-251-4/+3
| | | | | This serves as additional context that can be presented in error messages.
* Apply suggestions from code reviewPradyun Gedam2021-12-121-1/+1
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>