-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get platform-specific packages to work #26
Comments
I tried adding both platforms to the pip repo, one for host and one for the docker image, but it doesn't seem to work.
|
Hi Jared, Thanks for the bug report. I'm not intimately familiar with how the pip parsing determines the arch for pip packages with native code included. You mention it's when you "build and run the image" and those paths look like the in-container paths. bazel run --platforms=//tools/platforms:container_x86_64_linux //foo:foo_img_load_docker
docker run foo_image If so, two questions to help pin things down.
|
Hey @jessecureton, thanks for taking a look. I actually ended up stripping pip out completely and updating this to work with rules_pycross and pdm. I am going to put it back together into a demo PR that I can send your way. |
I have added a python package that relies on platform-specific code (e.g.
confluent_kakfa
). When I build and run the image, I get the error:Which suggests that this package is set up for the wrong architecture in the image. This happens if I build with the platform set.
I'm assuming this happens because the pip dependencies are generated on the host machine, correct? Or is something else going on here?
Any ideas on how this could be fixed?
The text was updated successfully, but these errors were encountered: