-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Make --platform/--interpreter multi-options #68
Comments
Is pants the only way to do this at the moment? I can't seem to find any documentation on it |
sadly yes but this should be a pretty straightforward PR |
If I understand it correctly, it would be a case of iterating through the combinations and creating resolvers for each, installing packages from those resolvers and then only after that, creating/freezing the pex file? I can't see where Pants is handling its multiplatform stuff |
@wickman is anybody working on this? I'm not very familiar with the pex codebase, but I would like to take a try at implementing this if nobody else is. We're using pex at the Internet Archive to generate binaries for our Thanks for all the work on pex, it's been a big win for us at the Archive being able to easily package the |
@jjjake I've not heard of anyone planning to tackle this in btw, per the earlier conversation on this thread here's the relevant code from it'd be ideal if we could subsume this functionality directly into |
Awesome. Thank you for the details @kwlzn, those are helpful. I'll go ahead and take a stab at it. |
@kwlzn here's my first pass at making --platform/--interpreter multi-options: https://github.com/jjjake/pex/commit/d948fa9c5de366b651ae891aa59c016c4287d4b5 Please let me know if I'm on the right track, and I'll work on cleaning things up, docstrings and tests for this change. Thanks! |
@jjjake assuming this is functional, the approach looks reasonable to me at a high level. I'll hold off on smaller/style comments until you have a pull request ready to go. I'd recommend cutting a branch for your changes before you get much further which should lead to an easier initial PR - then once you have a PR up you can utilize our TravisCI integration for test results (and keep pushing updates from your branch to re-run CI as needed during iteration). |
Commit 572f7f1 including jjjake's is now passing travis tests (https://travis-ci.org/mzdanieltest/pex/builds/132036887), though I noticed cache_dir has a different meaning (it is a list instead of a string). In particular, my original pex call doesn't run:
What would be the correct call to create a multi interpreter and platform? |
We have integrated pex with bazel for Heron compilation and we want to support multi-platform pex files for distribution. We are augmenting existing pex binary rules to take in platform option for generating these pex files. As I understand, the functionality of multi platform is with pants. Wondering if you could make this functionality available with pex and it will help us seamless integrate with bazel as well. |
@kramasamy I've landed support for this in master - should be able to cut a release tomorrow for you guys to begin using. |
@kramasamy release is out: https://pypi.python.org/pypi/pex/1.2.9 |
Awesome. Thanks Kris. Let me integrate this into pex rules.
… On Jul 24, 2017, at 9:46 PM, Kris Wilson ***@***.***> wrote:
@kramasamy <https://github.com/kramasamy> release is out.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#68 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAWcRErt0gyzGftKSEMXq2XTCnoo5Fu5ks5sRXMPgaJpZM4EAN9t>.
|
This is to make it easier to build multi-platform pex files a la pants.
The text was updated successfully, but these errors were encountered: