Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reduce diff | Tzu-ping Chung | 2021-03-15 | 1 | -5/+2 |
| | |||||
* | Typing fixes | Tzu-ping Chung | 2021-03-10 | 1 | -3/+6 |
| | |||||
* | Add a warning when run as root (e.g., sudo pip) (#9394) | Winson Luk | 2021-03-06 | 1 | -1/+6 |
| | |||||
* | Move distuitls location logic into subpackage | Tzu-ping Chung | 2021-02-23 | 1 | -8/+14 |
| | |||||
* | Remove typing.TYPE_CHECKING guards | Jon Dufresne | 2021-02-19 | 1 | -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() logic | Tzu-ping Chung | 2021-02-19 | 1 | -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 typing | Jon Dufresne | 2021-02-18 | 1 | -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-valid | Pradyun Gedam | 2021-01-05 | 1 | -0/+1 |
|\ | | | | | Verify built wheel contains valid metadata | ||||
| * | Verify built wheel contains valid metadata | Tzu-ping Chung | 2020-12-27 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #9406 from sbidoul/simplify-check_binary_allowed-sbi | Stéphane Bidoul | 2021-01-01 | 1 | -2/+0 |
|\ \ | | | | | | | Simplify check_binary_allowed | ||||
| * | | Simplify check_binary_allowed | Stéphane Bidoul | 2020-12-31 | 1 | -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 subclasses | Jon Dufresne | 2020-12-26 | 1 | -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__ imports | Jon Dufresne | 2020-12-24 | 1 | -2/+0 |
|/ | | | | Unnecessary since dropping Python 2. | ||||
* | Restore --build-dir | Stéphane Bidoul | 2020-12-01 | 1 | -0/+2 |
| | |||||
* | Update message displayed on conflicts post-resolution | Pradyun Gedam | 2020-11-12 | 1 | -7/+10 |
| | |||||
* | Factor out logic for determining resolver to use | Pradyun Gedam | 2020-10-30 | 1 | -4/+4 |
| | |||||
* | Remove --build-dir option, as per deprecation | Paul Moore | 2020-10-27 | 1 | -5/+1 |
| | |||||
* | Improve deprecation message for issue 8368 | Stéphane Bidoul | 2020-08-12 | 1 | -18/+3 |
| | |||||
* | Remove no-longer-used messages | Nguyễn Gia Phong | 2020-08-01 | 1 | -14/+0 |
| | |||||
* | Don't print that form link after the end of month. | Pradyun Gedam | 2020-07-27 | 1 | -1/+2 |
| | |||||
* | Reverse if statement's condition | Pradyun Gedam | 2020-07-27 | 1 | -12/+12 |
| | |||||
* | Move the form link to make the linter happy | Pradyun Gedam | 2020-07-27 | 1 | -1/+2 |
| | |||||
* | Add messaging variation based on "new resolver" usage | Pradyun Gedam | 2020-07-27 | 1 | -5/+30 |
| | |||||
* | Short circuit when there's nothing to report | Pradyun Gedam | 2020-07-27 | 1 | -0/+3 |
| | |||||
* | Refactor the logging calls into a dedicated loop | Pradyun Gedam | 2020-07-27 | 1 | -7/+22 |
| | |||||
* | Give mypy some love after rebase | Stéphane Bidoul | 2020-07-18 | 1 | -11/+14 |
| | |||||
* | Quote 'setup.py install' when calling it legacy | Stéphane Bidoul | 2020-07-18 | 1 | -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 fails | Stéphane Bidoul | 2020-07-18 | 1 | -3/+21 |
| | |||||
* | Enable flake8-logging-format | Nguyễn Gia Phong | 2020-07-17 | 1 | -1/+1 |
| | |||||
* | Nitpick logging calls | Nguyễn Gia Phong | 2020-07-17 | 1 | -4/+3 |
| | |||||
* | Return early for clarity | Pradyun Gedam | 2020-07-17 | 1 | -2/+1 |
| | |||||
* | Move conflict warning to just-before success message | Pradyun Gedam | 2020-07-16 | 1 | -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 exists | Pradyun Gedam | 2020-07-16 | 1 | -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" function | Pradyun Gedam | 2020-07-16 | 1 | -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_install | Chris Hunt | 2020-07-10 | 1 | -0/+2 |
|\ | | | | | feat(): Add logs for pip environment when installing | ||||
| * | feat(): Add logs for pip environment when installing | gutsytechster | 2020-07-09 | 1 | -0/+2 |
| | | |||||
* | | Rename function that reject location install options | Chris Hunt | 2020-07-07 | 1 | -2/+2 |
| | | | | | | | | | | Since it no longer shows a deprecation warning, the previous name doesn't fit. | ||||
* | | Throw CommandError on any location-related install options | Chris Hunt | 2020-07-07 | 1 | -15/+6 |
|/ | |||||
* | Assert target_temp_dir instead of if check | Devesh Kumar Singh | 2020-07-07 | 1 | -1/+2 |
| | |||||
* | Change target_temp_dir type to TempDirectory | Devesh Kumar Singh | 2020-07-07 | 1 | -2/+3 |
| | |||||
* | Add type annotations for pip._internal.commands.install | Devesh Kumar Singh | 2020-07-07 | 1 | -16/+22 |
| | |||||
* | Fix deletion of temp dir when exception occurs | Paul Moore | 2020-06-25 | 1 | -48/+48 |
| | |||||
* | Merge pull request #8287 from sbidoul/ref-install_given_reqs-sbi | Pradyun Gedam | 2020-05-30 | 1 | -1/+1 |
|\ | |||||
| * | Pass explicit arguments to install_given_req. | Stéphane Bidoul | 2020-05-21 | 1 | -1/+1 |
| | | |||||
* | | fix(_internal/commands): Define a default add_option to child commands | gutsytechster | 2020-05-23 | 1 | -36/+36 |
| | | |||||
* | | refactor(commands): Add method add_options and remove __init__ | gutsytechster | 2020-05-23 | 1 | -6/+3 |
|/ | | | | | This removes the __init__ method of child classes and defines explicit method for adding command options. | ||||
* | Avoid RequirementSet before reaching the resolver | Tzu-ping Chung | 2020-05-04 | 1 | -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 InstallRequirment | Tzu-ping Chung | 2020-03-30 | 1 | -1/+1 |
| | |||||
* | Raise error if --user and --target arguments are used together | sinscary | 2020-02-27 | 1 | -0/+3 |
| | |||||
* | Inline unconditionally-executed blocks | Chris Hunt | 2020-02-23 | 1 | -133/+132 |
| |