https://pantsbuild.org/ logo
#general
Title
# general
c

curved-television-6568

07/23/2021, 11:58 AM
regarding pex_binary option
platforms
, does it not matter if it is a hyphen or underscore between system and arch? https://www.pantsbuild.org/v2.7/docs/reference-pex_binary#codeplatformscode The examples shown use both..
Platforms should be in the format defined by Pex (https://pex.readthedocs.io/en/latest/buildingpex.html#platform), i.e. PLATFORM-IMPL-PYVER-ABI (e.g. “linux_x86_64-cp-27-cp27mu”, “macosx_10.12_x86_64-cp-36-cp36m”):
PLATFORM: the host platform, e.g. “linux-x86_64”, “macosx-10.12-x86_64".
Actually, the same applies for the pex docs.. https://pex.readthedocs.io/en/latest/buildingpex.html#platform
you can specify something like 
linux-x86_64
 or 
macosx-10.6-x86_64
[…] A complete example: 
linux_x86_64-cp-36-cp36m
.
and the pex docs are also not up-to-date, it seems… as with just a platform, I get:
pex: error: argument --platform: linux-x86_64 is an invalid platform:
Not a valid platform specifier: linux-x86_64
Platform strings must be in one of two forms:
1. Canonical: <platform>-<python impl abbr>-<python version>-<abi>
2. Abbreviated: <platform>-<python impl abbr>-<python version>-<abbr abi>
[…]
h

hundreds-father-404

07/23/2021, 12:23 PM
For the error message, what's the full command you're running? You need more than the OS part
c

curved-television-6568

07/23/2021, 12:29 PM
Yeah, the error message is clear on that I need more than the OS part, but the docs are not, was my point 😉 More details are in this thread: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1627042466498200?thread_ts=1626979580.481100&amp;cid=C0D7TNJHL
Sorry, the pants docs are clear on that, but the pex docs are misleading.
The platform to build the pex for. Right now it defaults to the current system, but you can specify something like 
linux-x86_64
 or 
macosx-10.6-x86_64
. This will look for bdists for the particular platform.
It continues, with what sounds like an optional addition…
… To resolve wheels for specific interpreter/platform tags, you can append them
4 Views