enough-analyst-54434
09/16/2022, 6:54 PMConfigured with:
build: False
use_wheel: True
That's really just Pex's reaction to pants passing --platform linux_x86_64-cp-39-cp39
which is what it does to tell Pex - "Hey, I know we're on Mac, but try to build a venv that works on Linux". Since we're on Mac, we cannot build sdists into Linux wheels without cross-building. Pex does not support cross-building and so it only allows pre-built wheels. The resolve fails since there is no pre-built wheel for img2pdf
. You need to build one for Linux and then make it available in a --find-links
repo for Pex to find. When using Pants you configure this with `[python-repos] repos = ...`: https://www.pantsbuild.org/docs/reference-python-repos#repos