diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-04-24 17:43:25 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-05-05 18:26:25 +0100 |
commit | b99d25456ccccb66b63811a4cf9ee2cccd0ba42a (patch) | |
tree | d9c6b71c21663c48d5fc5b29b80f4d30974f21ae /setuptools/command | |
parent | ca4db622ba961e5e1c6bd72614ad3431cc06d5bd (diff) | |
download | python-setuptools-git-dev/untangle_editable_wheel.tar.gz |
Skip incompatible tags in macosdev/untangle_editable_wheel
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/editable_wheel.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index 4c485b0e..a1f9b3ee 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -127,11 +127,19 @@ def _any_compat_tag() -> _Tag: the same system where it was produced. Therefore we can just be pragmatic and pick one of the compatible tags. """ - tag = next(sys_tags()) + tag = next(_skip_incompatible_tags()) + # ^-- TODO: replace with `tag = next(sys_tags())` (pypa/python#11789) components = (tag.interpreter, tag.abi, tag.platform) return cast(_Tag, tuple(map(_normalization.filename_component, components))) +def _skip_incompatible_tags(): + # Temporary workaround for https://github.com/pypa/pip/issues/11789 + for tag in sys_tags(): + if all(plat not in tag.platform for plat in ("macosx_12", "macosx_11")): + yield tag + + class editable_wheel(Command): """Build 'editable' wheel for development. This command is private and reserved for internal use of setuptools, |