summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands/install.py
Commit message (Collapse)AuthorAgeFilesLines
* Reduce diffTzu-ping Chung2021-03-151-5/+2
|
* Typing fixesTzu-ping Chung2021-03-101-3/+6
|
* Add a warning when run as root (e.g., sudo pip) (#9394)Winson Luk2021-03-061-1/+6
|
* Move distuitls location logic into subpackageTzu-ping Chung2021-02-231-8/+14
|
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-14/+10
| | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency
* Incorporate get_installed_version() logicTzu-ping Chung2021-02-191-8/+5
| | | | | | | All usages of it now use Environment.get_distribution() instead. InstallRequirement.installed_version is also removed since it is no longer used anywhere in the code base.
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
| | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
* Merge pull request #9320 from uranusjr/wheel-check-validPradyun Gedam2021-01-051-0/+1
|\ | | | | Verify built wheel contains valid metadata
| * Verify built wheel contains valid metadataTzu-ping Chung2020-12-271-0/+1
| |
* | Merge pull request #9406 from sbidoul/simplify-check_binary_allowed-sbiStéphane Bidoul2021-01-011-2/+0
|\ \ | | | | | | Simplify check_binary_allowed
| * | Simplify check_binary_allowedStéphane Bidoul2020-12-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | check_binary_allowed is only used to check if a wheel needs to be built in 'pip install' mode. It mixed format control and pep517 mode check. We change it so it checks allowed formats only, which leads to better readability of _should_build().
* | | Use unified OSError and its subclassesJon Dufresne2020-12-261-6/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Python 3.3, the following classes have merged into OSError. They remain as aliases for backward compatibility. - EnvironmentError - IOError - WindowsError https://docs.python.org/3/library/exceptions.html#OSError Python 3 also has subclasses of OSError to help identify more specific errors. For example, FileNotFoundError. This allows simplifying some except blocks.
* | Remove __future__ importsJon Dufresne2020-12-241-2/+0
|/ | | | Unnecessary since dropping Python 2.
* Restore --build-dirStéphane Bidoul2020-12-011-0/+2
|
* Update message displayed on conflicts post-resolutionPradyun Gedam2020-11-121-7/+10
|
* Factor out logic for determining resolver to usePradyun Gedam2020-10-301-4/+4
|
* Remove --build-dir option, as per deprecationPaul Moore2020-10-271-5/+1
|
* Improve deprecation message for issue 8368Stéphane Bidoul2020-08-121-18/+3
|
* Remove no-longer-used messagesNguyễn Gia Phong2020-08-011-14/+0
|
* Don't print that form link after the end of month.Pradyun Gedam2020-07-271-1/+2
|
* Reverse if statement's conditionPradyun Gedam2020-07-271-12/+12
|
* Move the form link to make the linter happyPradyun Gedam2020-07-271-1/+2
|
* Add messaging variation based on "new resolver" usagePradyun Gedam2020-07-271-5/+30
|
* Short circuit when there's nothing to reportPradyun Gedam2020-07-271-0/+3
|
* Refactor the logging calls into a dedicated loopPradyun Gedam2020-07-271-7/+22
|
* Give mypy some love after rebaseStéphane Bidoul2020-07-181-11/+14
|
* Quote 'setup.py install' when calling it legacyStéphane Bidoul2020-07-181-2/+2
| | | | | We want to make it clear that it is the setup.py install command we consider legacy, not setup.py itself.
* Deprecate install fallback when bdist_wheel failsStéphane Bidoul2020-07-181-3/+21
|
* Enable flake8-logging-formatNguyễn Gia Phong2020-07-171-1/+1
|
* Nitpick logging callsNguyễn Gia Phong2020-07-171-4/+3
|
* Return early for clarityPradyun Gedam2020-07-171-2/+1
|
* Move conflict warning to just-before success messagePradyun Gedam2020-07-161-1/+5
| | | | | | | | | | | | This is a much better location for these errors, since they're in a much more visible spot. We've had reports in the past of users missing these messages, and changing where we present these warnings should help resolve that issue. We do lose the ability for an advanced user to potentially see the warning and abort installation before the conflicts are introduced, but given that we don't even pause for input, I don't think that's a strong argument and neither do I view this as necessary.
* Clearly note where code duplication existsPradyun Gedam2020-07-161-1/+1
| | | | | | The duplication of this code isn't really that bad, but saying "pip check" makes it ambigous which file is relevant. Changing to reference the exact filename makes this clearer.
* Break up pip install's "conflict check" functionPradyun Gedam2020-07-161-8/+18
| | | | | Making this into two functions allows for separating the "check" and "print warnings" step in a follow up commit.
* Merge pull request #8266 from gutsytechster/add_logs_for_installChris Hunt2020-07-101-0/+2
|\ | | | | feat(): Add logs for pip environment when installing
| * feat(): Add logs for pip environment when installinggutsytechster2020-07-091-0/+2
| |
* | Rename function that reject location install optionsChris Hunt2020-07-071-2/+2
| | | | | | | | | | Since it no longer shows a deprecation warning, the previous name doesn't fit.
* | Throw CommandError on any location-related install optionsChris Hunt2020-07-071-15/+6
|/
* Assert target_temp_dir instead of if checkDevesh Kumar Singh2020-07-071-1/+2
|
* Change target_temp_dir type to TempDirectoryDevesh Kumar Singh2020-07-071-2/+3
|
* Add type annotations for pip._internal.commands.installDevesh Kumar Singh2020-07-071-16/+22
|
* Fix deletion of temp dir when exception occursPaul Moore2020-06-251-48/+48
|
* Merge pull request #8287 from sbidoul/ref-install_given_reqs-sbiPradyun Gedam2020-05-301-1/+1
|\
| * Pass explicit arguments to install_given_req.Stéphane Bidoul2020-05-211-1/+1
| |
* | fix(_internal/commands): Define a default add_option to child commandsgutsytechster2020-05-231-36/+36
| |
* | refactor(commands): Add method add_options and remove __init__gutsytechster2020-05-231-6/+3
|/ | | | | This removes the __init__ method of child classes and defines explicit method for adding command options.
* Avoid RequirementSet before reaching the resolverTzu-ping Chung2020-05-041-4/+1
| | | | | | | | | | | The RequirementSet implementation conflates requirements incorrectly in a lot of places. This means the (new) resolver would get incomplete requirements. The removes all RequirementSet.add_requirement() calls outside of the legacy resolver, so the new resolver can get the unmodified list of requirements specified by the user, allowing for more sophisticated requirement merging.
* Move wheel cache out of InstallRequirmentTzu-ping Chung2020-03-301-1/+1
|
* Raise error if --user and --target arguments are used togethersinscary2020-02-271-0/+3
|
* Inline unconditionally-executed blocksChris Hunt2020-02-231-133/+132
|