Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
0c4a9920
Unverified
Commit
0c4a9920
authored
Jan 22, 2020
by
Matthew Brett
Committed by
GitHub
Jan 22, 2020
Browse files
Merge pull request #299 from anthrotype/pip20
supported_wheels.py: in pip 20, get_supported() returns list of Tags
parents
24d35a4a
79912bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
supported_wheels.py
supported_wheels.py
+6
-1
No files found.
supported_wheels.py
View file @
0c4a9920
...
...
@@ -28,7 +28,12 @@ def tags_for(fname):
def
main
():
supported
=
set
(
get_supported
())
# Up to pip < 20, get_supported() returns a list of tuples; from pip >= 20,
# it returns a list of packaging.tags.Tag objects. We try to support both.
supported
=
{
(
tag
.
interpreter
,
tag
.
abi
,
tag
.
platform
)
if
not
isinstance
(
tag
,
tuple
)
else
tag
for
tag
in
get_supported
()
}
for
fname
in
sys
.
argv
[
1
:]:
tags
=
set
(
tags_for
(
fname
))
if
supported
.
intersection
(
tags
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment