question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pip allows cpxx-none-any tags (and maybe it shouldn't)

See original GitHub issue

Description

Continuing discussion from: https://github.com/pypa/packaging/issues/511

In summary, pip’s TargetPython.get_tags() for cpython includes eg cp39-none-any as one of the compatible flags. This is because it always passes the interpreter in when it calls packaging.tags.compatible_tags(). This is inconsistent with packaging.tags.sys_tags(), which doesn’t pass the interepeter in unless it’s pypy. packaging.tags.sys_tags() therefore doesn’t include cp39-none-any.

One practical implication of this is that the pyxll distribution, which has only cpxx-none-any wheels, installs with pip but doesn’t with poetry, which uses packaging.tags.sys_tags().

Discussion of this on the packaging issue above suggests this should be considered an issue with pip, and that it shouldn’t include these tags. However, please note that this behaviour wasn’t introduced recently and it is relied on by, at least, pyxll. Pip versions as old as 20.2 are able to install the pyxll wheels.

Expected behavior

I would expect pip and packaging.tags to agree on which tags are compatible with a given python installation.

pip version

22.0.3

Python version

3.9

OS

Windows

How to Reproduce

  1. pip install pyxll
  2. It works, and arguably shouldn’t.

Output

No response

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Mar 1, 2022

In terms of this issue specifically, personally I don’t think pip should disallow this particular tag, mostly with a “why not” reasoning. It’s not inconceivable to come up with scenarios (albeit contrived) that the tag may make sense to someone.

0reactions
brettcannoncommented, Aug 22, 2022

The next release of packaging will include the tag: https://github.com/pypa/packaging/issues/511 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after upgrading pip: cannot import name 'main'
You must have inadvertently upgraded your system pip (probably through something like sudo pip install pip --upgrade ).
Read more >
FAQ - Frequently Asked Questions - C.P. Company
This section provides answers to the most frequently asked questions on personal account, shipping, returns and payment. More on the official website.
Read more >
pre-commit
We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements....
Read more >
NVIDIA CUDA Installation Guide for Linux
L4T provides a Linux kernel and a sample root filesystem derived from Ubuntu ... For pre-existing projects which use libcuda.so , it may...
Read more >
What Makes C.P. Company an Underrated Streetwear Brand?
Massimo Osti brand C.P. Company hasn't enjoyed the same explosion in popularity as Stone Island, but there are lots of things to like....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found