brief-engine-92399
10/16/2025, 2:36 AMcurved-manchester-66006
10/16/2025, 3:00 AMpip freeze https://github.com/pantsbuild/pants/discussions/20368
For what you are trying to do though, there are several variant of using complete_platform to assemble an x86_64 pex on arm64, or vise versa. You could then, for example, use copy the right wheels around.
(The details are obviously specific to what you are trying to do, but in general if one is trying to deploy on arch X, it would be advisable to also test/build on arch X too.)brief-engine-92399
10/16/2025, 4:52 AMdocker_image rule for a cross platform build is obnoxiously slow. Usually we're running on x86, but we also need to support arm builds soon.
I rebuilt all our deps for arm on an arm machine and even made an arm deployment work, but most people are working on x86 machines and need the ability to test runs on x86 or arm.brief-engine-92399
10/16/2025, 4:57 AMbrief-engine-92399
10/16/2025, 5:01 AMgorgeous-winter-99296
10/16/2025, 7:19 AMbrief-engine-92399
10/16/2025, 2:12 PMbrief-scientist-13682
10/16/2025, 9:51 PM# Using external pex-tools:
:; pex requests -o requests.pex
:; pex-tools requests.pex repository info -v | jq -r '.project_name + "==" + .version'
requests==2.32.5
charset-normalizer==3.4.4
idna==3.11
urllib3==2.5.0
certifi==2025.10.5
# Using embedded pex tools (comes along with --venv PEXes for free as well)
:; pex requests -o requests.pex --include-tools
:; PEX_TOOLS=1 ./requests.pex repository info -v | jq -r '.project_name + "==" + .version'
requests==2.32.5
charset-normalizer==3.4.4
idna==3.11
urllib3==2.5.0
certifi==2025.10.5
# No pex tools at all
:; unzip -qc requests.pex PEX-INFO | jq -r '.distributions | keys[]' | cut -d- -f1-2 | sed -e 's|-|==|'
certifi==2025.10.5
charset_normalizer==3.4.4
idna==3.11
requests==2.32.5
urllib3==2.5.0brief-scientist-13682
10/16/2025, 9:52 PMcomplete_platform gets me the whls@brief-engine-92399 using
--complete-platforms means you shouldn't need to run Pex in a docker container at all.brief-engine-92399
10/16/2025, 9:53 PMbrief-scientist-13682
10/16/2025, 9:53 PMbrief-engine-92399
10/16/2025, 9:53 PMbrief-scientist-13682
10/16/2025, 9:54 PMbrief-scientist-13682
10/16/2025, 9:54 PMbrief-engine-92399
10/16/2025, 9:54 PMbrief-engine-92399
10/16/2025, 9:54 PMbrief-scientist-13682
10/16/2025, 9:54 PMbrief-scientist-13682
10/16/2025, 9:55 PMbrief-scientist-13682
10/16/2025, 9:55 PM--complete-platforms, but hen you can, its good.brief-engine-92399
10/16/2025, 9:56 PMbrief-scientist-13682
10/16/2025, 9:57 PMbrief-scientist-13682
10/16/2025, 9:58 PMbrief-scientist-13682
10/16/2025, 9:58 PMbrief-scientist-13682
10/16/2025, 9:59 PM