Zach
03/23/2023, 4:54 PMdaniel
03/23/2023, 4:58 PMZach
03/23/2023, 4:59 PMdaniel
03/23/2023, 5:05 PMZach
03/23/2023, 5:07 PMdaniel
03/23/2023, 5:16 PMZach
03/23/2023, 5:17 PMMatt Clarke
03/23/2023, 5:21 PMdaniel
03/23/2023, 5:23 PMShantanu
03/23/2023, 5:38 PMZach
03/23/2023, 5:43 PMShantanu
03/23/2023, 5:49 PMZach
03/23/2023, 5:51 PMShalabh Chaturvedi
03/23/2023, 8:43 PMIssues arises when you work on Mac and build a docker image which of course breaks things because PEX Is platform dependent.You can cross build pex files as along as wheels are available for all dependencies. The flag to use is
--platform
or --complete-platform
. These are also available in the pex_binary
rule: https://www.pantsbuild.org/docs/reference-pex_binary#codecomplete_platformscode
Looks like pants also has new support for cross builds using a docker builder environment: https://www.pantsbuild.org/docs/environments#use-a-docker_environment-to-build-the-inputs-to-a-docker_image