pip: pip list is unable to mention architecture
Description
If someone happens to upgrade from intel to aarch64, pip will not be able to help him identify any packages that are using wrong architecture. They would have to either uninstall or use install --force in order to address the issue.
Expected behavior
At least the JSON output of pip list should mention architecture when that is avaiable but now it does not do this:
python -m pip list --format=json
Ideally pip should all be smart enough to detect a mismatch in architecture and ignore or warn about mismatched packages. For example pip check would be a good candidate for that too.
pip version
22.0.4
Python version
3.11.3
OS
MacOS
How to Reproduce
It might be harder to reproduce the way I got into it, as I used Apple Migration Assistant to migrate from old computer to the new one but I guess you could just force pip to install a binary wheel using a different architecture.
Once this happens, you are kinda clueless if the wheel is usable or not, at least until you try to do an import from the binary parts.
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (14 by maintainers)
Commits related to this issue
- chore(deps-dev): Bump pip from 24.1.2 to 24.2 in /packages/jsii-pacmak/test/generated-code (#4584) Bumps [pip](https://github.com/pypa/pip) from 24.1.2 to 24.2. <details> <summary>Changelog</summary>... — committed to aws/jsii by dependabot[bot] 2 years ago
- chore(deps): Update pip requirement from ~=24.1 to ~=24.2 in /packages/@jsii/python-runtime (#4588) Updates the requirements on [pip](https://github.com/pypa/pip) to permit the latest version. <detai... — committed to aws/jsii by dependabot[bot] 2 years ago
- Bump pip from 24.1.2 to 24.2 (PR #7917) Bumps [pip](https://github.com/pypa/pip) from 24.1.2 to 24.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pip/b... — committed to inmanta/inmanta-core by dependabot[bot] 2 years ago
- Bump pip from 24.1.2 to 24.2 (PR #7916) Bumps [pip](https://github.com/pypa/pip) from 24.1.2 to 24.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pip/b... — committed to inmanta/inmanta-core by dependabot[bot] 2 years ago
- chore(deps): Bump pip from 24.1.2 to 24.2 (#1950) Bumps [pip](https://github.com/pypa/pip) from 24.1.2 to 24.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.... — committed to kai687/sphinxawesome-theme by dependabot[bot] 2 years ago
- chore(deps): Bump pip from 24.1.2 to 24.2 (#1954) Bumps [pip](https://github.com/pypa/pip) from 24.1.2 to 24.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.... — committed to kai687/sphinxawesome-theme by dependabot[bot] 2 years ago
- Bump pip from 23.2.1 to 24.2 (#8816) [//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if yo... — committed to aio-libs/aiohttp by dependabot[bot] 2 years ago
- Bump pip from 23.2.1 to 24.2 (#8853) Bumps [pip](https://github.com/pypa/pip) from 23.2.1 to 24.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pypa/pip/blob... — committed to aio-libs/aiohttp by dependabot[bot] 2 years ago
Personally I am +1 to adding this to
pip check.Doesn’t the
.dist-info/WHEELfile include the wheel tags, from which the architecture can be parsed? I can’t see an explicit requirement from PEP 427 that the file be copied over from the wheel, but I think all tools do in practice.