From f5b323a3af5a9a5ace6f05bfa9a51db949ce1057 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Tue, 11 Feb 2025 10:20:21 +1100 Subject: [PATCH] propagate into wheel build --- src/python/pants/BUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/python/pants/BUILD b/src/python/pants/BUILD index 804ed92243e..2afa12935a3 100644 --- a/src/python/pants/BUILD +++ b/src/python/pants/BUILD @@ -38,6 +38,10 @@ python_distribution( python_requires="==3.11.*", ), entry_points={"console_scripts": {"pants": "pants.bin.pants_loader:main"}}, + # We need to explicitly control the wheel tagging, rather than following whatever the current + # Python interpreter is tagged for (especially on macOS, where a 'universal' interpreter build + # can lead to single-platform wheels being tagged as `universal2` wheels, incorrectly) + env_vars=["_PYTHON_HOST_PLATFORM"], ) pex_binary(