Hey folks, I'm trying to build a Pex (on macos m1)...
# general
n
Hey folks, I'm trying to build a Pex (on macos m1) that I can run inside a Docker container (ubuntu). I've specified
complete_platforms
option for
pex_binary
, created a platform json file for the container environment, build the necessary wheel files (build inside the container) in the directory pointed by
[python-repos]
. When I run
pants package //:main
I get
Copy code
stderr:
No pre-built wheel was available for pybedtools 0.9.1.
Successfully built the wheel pybedtools-0.9.1-cp39-cp39-macosx_11_0_arm64.whl from the sdist pybedtools-0.9.1.tar.gz but it is not compatible with the requested foreign target complete platform cp38-cp38-linux_x86_64.
You'll need to build a wheel from pybedtools-0.9.1.tar.gz on the foreign target platform and make it available to Pex via a `--find-links` repo or a custom `--index`.
Here is a minimalistic example that reproduces the issue https://github.com/vadzimra/pex-build-cross-platform It looks like
[python-repos]
config is not being used. Is there a way to fix it or running Paints inside the container is the only option? Thank you.
b
You can run the command with
--keep-sandboxes=on_error
and inspect the sandbox and the process args (
__run.sh
) to see what's happening
n
Thank you Josh, I'll try