https://pantsbuild.org/ logo
#general
Title
# general
c

cuddly-teacher-45066

01/05/2022, 8:13 AM
I have problems building a pex_binary target with
avro
as a dependency, the host system is a macos machine and it seems this is also not working:
Copy code
pex avro -o /tmp/pex --platform manylinux2014_x86_64-cp-38-cp38
the main goal is to build a docker image using the pex file. I have no problems with numpy surprisingly. An alternative solution I guess could be building the dependency within the container
h

happy-kitchen-89482

01/05/2022, 8:14 AM
What error message are you seeing?
It looks like avro is only released as an sdist, so you can't cross-build a pex that includes it
👀 1
c

cuddly-teacher-45066

01/05/2022, 8:16 AM
thanks a lot, this explains a lot
h

happy-kitchen-89482

01/05/2022, 8:16 AM
so you'd have to either build and host the wheels yourself, or build in a container
We do have ideas around Pants itself being able to execute local processes in a container (so kinda like remote execution, but local)
If you have opinions about the utility of that, you can suggest it here: https://pantsbuild.slack.com/archives/C18RRR4JK/p1641338890053700
c

cuddly-teacher-45066

01/05/2022, 8:18 AM
cool thanks, let me have a look
3 Views