Skip to content
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

Need way to specify target platform #58

Open
excavador opened this issue Dec 14, 2017 · 2 comments
Open

Need way to specify target platform #58

excavador opened this issue Dec 14, 2017 · 2 comments

Comments

@excavador
Copy link

Hi!

I am using your rules, and rules are awesome.
I have single small problem: on OSX I am building PEX binary and then put it to centos-based docker image.

As result, PEX image does not work because it includes OSX-based numpy/other libraries with C modules.

It would be great to provide some way to build PEX-binaries for target platform (ideally - handle "--cpu" flag from bazel, which used for cross-compile)

Thank you!

@benley
Copy link
Owner

benley commented Dec 18, 2017

Cross-compilation support would be very nice to have, indeed! I'm not certain but I think it would be difficult to implement today, because of the current lack of python support in bazel toolchains. The py_runtime rule type helps somewhat, but I'm not sure how to go about specifying that a build should use different Python versions for build steps (on the local system) and the target system (cross compiling target for C modules). Over in rules_python there are some related topics, like bazelbuild/rules_python#42.

@benley
Copy link
Owner

benley commented Dec 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants