1
1
Fork 0
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:
Chris Hunt 2019-11-23 18:02:51 -05:00
parent 0bebeb66e6
commit 293b778374

View file

@ -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]]