polite-sundown-16285
11/04/2024, 1:20 PMdist/wheels
This results in the following structure -
./dist/wheels/reportlab-3.5.68-cp39-cp39-linux_aarch64.whl
./dist/wheels/Pillow-9.5.0-cp39-cp39-manylinux_2_28_aarch64.wh
Trying to package the library with custom find_links
fails, no matter how they're specified (pants.toml / env / flags)
pants package --python-repos-find-links="['/Users/kobybass/proj/monorepo/dist/wheels']" app/reporting:bin
I get the following error:
stderr:
No pre-built wheel was available for reportlab 3.5.68.
Successfully built the wheel reportlab-3.5.68-cp39-cp39-macosx_13_0_arm64.whl from the sdist reportlab-3.5.68.tar.gz but it is not compatible with the requested foreign target complete platform cp39-cp39-manylinux_2_36_aarch64.
You'll need to build a wheel from reportlab-3.5.68.tar.gz on the foreign target platform and make it available to Pex via a `--find-links` repo or a custom `--index`.
I suspect that the pex_binary does not respect the find-links
.
TL;DR -
What's the correct approach to point the PEX binary to prebuilt wheels?
Solution - Needed to regenerate the lockfile and adding find-links globallygorgeous-winter-99296
11/04/2024, 1:25 PMpolite-sundown-16285
11/04/2024, 1:30 PM