mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Customize platforms for packaging.tags.generic_tags
This commit is contained in:
parent
0bebeb66e6
commit
293b778374
1 changed files with 10 additions and 2 deletions
|
@ -328,8 +328,16 @@ def _generic_tags(
|
|||
if abi:
|
||||
abis = [abi]
|
||||
|
||||
if platform is None:
|
||||
return generic_tags(interpreter=interpreter, abis=abis)
|
||||
platforms = None # type: Optional[List[str]]
|
||||
if platform is not None:
|
||||
platforms = _get_custom_platforms(platform, platform)
|
||||
|
||||
if True:
|
||||
return generic_tags(
|
||||
interpreter=interpreter,
|
||||
abis=abis,
|
||||
platforms=platforms,
|
||||
)
|
||||
|
||||
supported = [] # type: List[Tuple[str, str, str]]
|
||||
|
||||
|
|
Loading…
Reference in a new issue