-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdist installation fails when pip is run from wheel #9953
Comments
Thanks for the report. This is caused by “PEP 517 inception” (a term I invented for #9878), but slightly more obscure. Starting with 21.1, pip now builds itself as a zip file when being used to populate an isolated environment, but when it can’t do that if the “host” pip is already a zip. This is currently detected by checking if I’ll spend some time looking into this in the coming weekend. Adding this into the 21.1.2 milestone as a regression. |
+1 to fixing this if it's straightforward to do so, and I think it's fair in that context to view this as a regression, but to be clear, as the OP said, this isn't formally supported usage of pip. Although @uranusjr does the "PEP 517 inception" mechanism (which I haven't looked at too closely) rely on pip-running-from-a-zip being able to install? And if so, does it need to be able to install from general sources (e.g. PyPI)? Because if we're using pip from a zip internally, maybe we need to document that we mustn't break that usage (at a minimum in an "internal use only" section of the docs...) |
This change ensures that when pip is executed from a wheel, standalone pip creation for build environment reuses the wheel. Resolves: pypa#9953
This change ensures that when pip is executed from a wheel, standalone pip creation for build environment reuses the wheel. Resolves: pypa#9953
This change ensures that when pip is executed from a wheel/zip, standalone pip creation for build environment reuses the source. Resolves: pypa#9953
This change ensures that when pip is executed from a wheel/zip, standalone pip creation for build environment reuses the source. Resolves: pypa#9953
This change ensures that when pip is executed from a wheel/zip, standalone pip creation for build environment reuses the source. Resolves: pypa#9953 Co-authored-by: Tzu-ping Chung <[email protected]>
This change ensures that when pip is executed from a wheel/zip, standalone pip creation for build environment reuses the source. Resolves: pypa#9953 Co-authored-by: Tzu-ping Chung <[email protected]>
This change ensures that when pip is executed from a wheel/zip, standalone pip creation for build environment reuses the source. Resolves: pypa#9953 Co-authored-by: Tzu-ping Chung <[email protected]>
Bumps [pip](https://github.com/pypa/pip) from 21.1.1 to 21.1.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pip/blob/main/NEWS.rst">pip's changelog</a>.</em></p> <blockquote> <h1>21.1.2 (2021-05-23)</h1> <h2>Bug Fixes</h2> <ul> <li>New resolver: Correctly exclude an already installed package if its version is known to be incompatible to stop the dependency resolution process with a clear error message. (<code>[#9841](pypa/pip#9841) <https://github.com/pypa/pip/issues/9841></code>_)</li> <li>Allow ZIP to archive files with timestamps earlier than 1980. (<code>[#9910](pypa/pip#9910) <https://github.com/pypa/pip/issues/9910></code>_)</li> <li>Emit clearer error message when a project root does not contain either <code>pyproject.toml</code>, <code>setup.py</code> or <code>setup.cfg</code>. (<code>[#9944](pypa/pip#9944) <https://github.com/pypa/pip/issues/9944></code>_)</li> <li>Fix detection of existing standalone pip instance for PEP 517 builds. (<code>[#9953](pypa/pip#9953) <https://github.com/pypa/pip/issues/9953></code>_)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pypa/pip/commit/8737f903eaa9475e1b7693e436d9bdf17e46e43a"><code>8737f90</code></a> Bump for release</li> <li><a href="https://github.com/pypa/pip/commit/d7cf6cacdee550983686692d0d463ad493cb993d"><code>d7cf6ca</code></a> Update AUTHORS.txt</li> <li><a href="https://github.com/pypa/pip/commit/30faa6478edbc1e54498b7cbb20111d75a96d2dd"><code>30faa64</code></a> Fix duplicate top line in NEWS.rst</li> <li><a href="https://github.com/pypa/pip/commit/128ec362547fe11f8b3c6402687a00a06e7f6e51"><code>128ec36</code></a> Test case for backtracking an installed candidate</li> <li><a href="https://github.com/pypa/pip/commit/729c626da75b25af0640a77efdbbfc57e567e1f9"><code>729c626</code></a> Exclude a known incompatible installed candidate</li> <li><a href="https://github.com/pypa/pip/commit/1c31d3314c42d19b354f376991db2b33134dde5e"><code>1c31d33</code></a> Update src/pip/_internal/build_env.py</li> <li><a href="https://github.com/pypa/pip/commit/e266aa55ac6484d33c36aee7082243edd669e2a8"><code>e266aa5</code></a> Update news/9910.bugfix.rst</li> <li><a href="https://github.com/pypa/pip/commit/00003d5325b333290b4bcde17791ed3a489562d0"><code>00003d5</code></a> 9910 news</li> <li><a href="https://github.com/pypa/pip/commit/d55e02c71673f4332c191cf8095360c5900f7c6e"><code>d55e02c</code></a> Set strict_timestamps=False when zip is called for isolated environment</li> <li><a href="https://github.com/pypa/pip/commit/4f983c4476251c83bc320ebaaff0cb9b71d2e981"><code>4f983c4</code></a> Handle standalone pip creation from pip wheel</li> <li>Additional commits viewable in <a href="https://github.com/pypa/pip/compare/21.1.1...21.1.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pip&package-manager=pip&previous-version=21.1.1&new-version=21.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Description
This might not be a bug per say as
pip
is not officially zip safe. However, a previously working scenario is no longer working, figured I would raise this here.In pip versions prior to
21.1.1
, we were able to use pip as shown below.However, with
21.1.1
this no longer works.Expected behavior
An sdist package can be installed successfully when installed with
python pip-<version>.whl/pip install <sdist>
.pip version
21.1.1
Python version
3.9
OS
Fedora 34
How to Reproduce
The following commands reproduce the issue.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: