cool-easter-32542
04/22/2024, 6:46 PM@rule
async def build_python_faas(
request: BuildPythonFaaSRequest,
) -> BuiltPackage:
additional_pex_args = (
# Ensure we can resolve manylinux wheels in addition to any AMI-specific wheels.
"--manylinux=manylinux2014",
# When we're executing Pex on Linux, allow a local interpreter to be resolved if
# available and matching the AMI platform.
"--resolve-local-platforms",
)
Looks like certain python libraries no longer release a linux version for manylinux2014. For example pyarrow:
| stderr:
build-1 | A distribution for pyarrow could not be resolved for cp312-cp312-linux_x86_64.
build-1 | Found 1 distribution for pyarrow that do not apply:
build-1 | 1.) The wheel tags for pyarrow 16.0.0 are cp312-cp312-manylinux_2_28_x86_64 which do not match the supported tags of cp312-cp312-linux_x86_64:
build-1 | cp312-cp312-manylinux2014_x86_64
build-1 | ... 122 more ...
There is no pyarrow x86 version after pyarrow 12.0.1.
I am using 2.21..0a0 pants version. This version seems to support python 312. I did change resolver_manylinux to manylinux_2_28 in pants.toml. This variable only applies for app.pex file does not impact the pex generation for FAAS.
Please let me know if you need more information.
pantsbuild/pantscool-easter-32542
04/25/2024, 2:00 AM