blue-city-97042
08/15/2023, 8:43 PMbitter-ability-32190
08/15/2023, 8:43 PMbitter-ability-32190
08/15/2023, 8:44 PMpants
binary launcher?blue-city-97042
08/15/2023, 8:45 PMblue-city-97042
08/15/2023, 8:45 PMbitter-ability-32190
08/15/2023, 8:46 PMblue-city-97042
08/15/2023, 8:46 PMbitter-ability-32190
08/15/2023, 8:47 PMblue-city-97042
08/15/2023, 8:47 PMblue-city-97042
08/15/2023, 8:47 PMbitter-ability-32190
08/15/2023, 8:47 PMblue-city-97042
08/15/2023, 8:48 PMbitter-ability-32190
08/15/2023, 8:48 PMblue-city-97042
08/15/2023, 8:50 PMSHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.103/pex> verified.
But on our build system it won't have access to the github download locationblue-city-97042
08/15/2023, 8:50 PMbitter-ability-32190
08/15/2023, 8:54 PMscie-pants
(the name of the pants
launcher) asks for PythonBuildStandalone for Python 3.9 from the relevant GitHub Release.
⦠I'm surprised this isn't the error you see
⢠Then it finds pants
from PyPI (in the future this will come from a GitHub release as well, and currently isn't configurable, I'll DM you about this)
⢠Then Pants needs Pex to run. It does so by using the values form this subsystem
So to answer your original question. Poke at the docs in that last bullet pointblue-city-97042
08/15/2023, 8:54 PMbitter-ability-32190
08/15/2023, 9:03 PMblue-city-97042
08/15/2023, 10:37 PMbitter-ability-32190
08/15/2023, 10:42 PMhappy-kitchen-89482
08/15/2023, 11:29 PMblue-city-97042
08/16/2023, 4:03 PMThen it finds pants from PyPI (in the future this will come from a GitHub release as well, and currently isn't configurable, I'll DM you about this)
Is this download from pypi a curl/request download, or is it using pip/poetry?bitter-ability-32190
08/16/2023, 4:04 PMblue-city-97042
08/16/2023, 4:06 PMPANTS_BOOTSTRAP_URLS=/build/ptex-mappings.json
with the ptext-mappings.json containing:
{
"ptex": {
"cpython-3.8.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "file:///home/build/ptex/cpython-3.8.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz",
"cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "file:///home/build/ptex/cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz"
}
}
But when I run
SCIE=inpect pants | jq .ptex
I still get the original URLs
{
"cpython-3.8.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "<https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.8.16%2B20230507-x86_64-unknown-linux-gnu-install_only.tar.gz>",
"cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "<https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.9.16%2B20230507-x86_64-unknown-linux-gnu-install_only.tar.gz>"
}
blue-city-97042
08/16/2023, 4:06 PMbitter-ability-32190
08/16/2023, 4:10 PMexport
that env var?
Try PANTS_BOOTSTRAP_URLS=/build/ptex-mappings.json SCIE=inspect pants | jq .ptex
?blue-city-97042
08/16/2023, 4:10 PMblue-city-97042
08/16/2023, 4:11 PMblue-city-97042
08/16/2023, 4:11 PMbitter-ability-32190
08/16/2023, 4:11 PMblue-city-97042
08/16/2023, 4:11 PMbitter-ability-32190
08/16/2023, 4:12 PMscie-pants
) comes before Pants-proper, so what version of Pants you're using shouldn't come into play (until we want to associate a newer Python version for a release of Pants, but I digress...)bitter-ability-32190
08/16/2023, 4:13 PMAh, the readme is stale: https://github.com/pantsbuild/scie-pants/blob/741555cae988265ecd60283cf0dfe21fd6f10869/tools/lift.json#L62C1-L62C227So try defining the key/value for
cpython-3.9.15+20221106-x86_64-unknown-linux-gnu-install_only.tar.gz
?bitter-ability-32190
08/16/2023, 4:15 PMSCIE=inspect
should match what you provide.
Apologies for the mess, this part of Pants is relatively new and some of us are still trying to catch up šblue-city-97042
08/16/2023, 4:22 PMSCIE=inspect pants | jq .ptex
{
"cpython-3.8.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "<https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.8.16%2B20230507-x86_64-unknown-linux-gnu-install_only.tar.gz>",
"cpython-3.9.16+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz": "<https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.9.16%2B20230507-x86_64-unknown-linux-gnu-install_only.tar.gz>"
}
blue-city-97042
08/16/2023, 4:22 PMbitter-ability-32190
08/16/2023, 4:29 PMblue-city-97042
08/16/2023, 4:31 PMstrings
I see:
PANTS_BOOTSTRAP_VERSION0.9.1
bitter-ability-32190
08/16/2023, 4:33 PMblue-city-97042
08/16/2023, 4:38 PMblue-city-97042
08/16/2023, 4:38 PMbitter-ability-32190
08/16/2023, 4:38 PMblue-city-97042
08/16/2023, 4:38 PMblue-city-97042
08/16/2023, 4:49 PMblue-city-97042
08/16/2023, 4:49 PMenough-analyst-54434
08/17/2023, 5:14 PMSCIE=inspect pants
shows you the lift manifest of the scie, it makes no attempt to merge things. If you actually run PANTS_BOOTSTRAP_URLS=... pants
that works fine. I'll add my steps to prove this to the issue you filed.blue-city-97042
08/17/2023, 5:20 PMenough-analyst-54434
08/17/2023, 5:24 PMSCIE=inspect
just doesn't do what you thought it did. I'm not sure what to do about that. Your issue though implied functionally things didn't work. Not just informationally.enough-analyst-54434
08/17/2023, 5:24 PMblue-city-97042
08/17/2023, 6:03 PMenough-analyst-54434
08/18/2023, 3:35 PM