-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Multi-interpreter feature doesn't work perfectly #415
Comments
A year and a half later - agreed! This is still an issue and was recently re-discovered by Pants in the investigation of pantsbuild/pants#7158 To put a finer point on things, for this historical case, we have:
When resolving for multiple interpreters the buggy logic is here: For one, a single sdist package will not be built more than once; ie not for each interpreter needed. |
I'll work this issue under #658 which is a bit more finely pointed and close both when / if that issue resolves the problem noted here in the original description. |
This changes Pex to vendor pip and defer all resolution and building to it. As part of this change some ambiguous and / or broken features were changed and APIs adjusted: + The egg distribution format is no longer supported. + The deprecated `--interpreter-cache-dir` CLI option was removed. + The `--cache-ttl` CLI option and `cache_ttl` resolver API argument were removed. + The resolver API replaced `fetchers` with a list of `indexes` and a list of `find_links` repos. + The resolver API removed (http) `context` which is now automatically handled. + The resolver API removed `precedence` which is now pip default precedence - wheels when available and not ruled out via the `--no-wheel` CLI option or `use_wheel=False` API argument. + The `--platform` CLI option and `platform` resolver API argument now must be full platform strings that include platform, implementation, version and abi; e.g.: `--platform=macosx-10.13-x86_64-cp-36-m`. + The `--manylinux` CLI option and `use_manylinux` resolver API argument were removed. Instead, to resolve manylinux wheels for a foreign platform, specify the manylinux platform to use with an explicit `--platform` CLI flag or `platform` resolver API argument; e.g.: `--platform=manylinux2010-x86_64-cp-36-m`. Fixes #781 Additionally: Fixes #771 Fixes #763 Fixes #761 Fixes #735 Fixes #694 Fixes #660 Fixes #658 Fixes #642 Fixes #641 Fixes #628 Fixes #620 Fixes #614 Fixes #611 Fixes #608 Fixes #439 Fixes #415 Fixes #387 Fixes #315
Summary
I'm trying to create a multi-interpreter pex on ubuntu for
cryptography
that works on mac.cryptography
does not containenum34
andipaddress
in Python3 but does in Python2. However, it seems that pex couldn't figure out that, so it prints an error saying "enum34
andipaddress
are missing".Validation
For Python 2.7 cryptography:
For Python 3.6 cryptography
Reproduction
Pex version: 1.2.11
Get the pex generated on ubuntu using the command:
pex --disable-cache cryptography --platform=macosx-10.6-intel --python=python2.7 --python=python3.6 -o test.pex
Run
test.pex
on mac using the command:python3.6 test.pex
This will print the error:
Note that if we run
test.pex
using Python 2.7, everything works fine. Also, if this pex file is generated on mac instead of ubuntu, it works with Python 2.7 and Python 3.6 perfectly.Thank you so much for your help!
(and sorry that I can't come up with a better title to describe my problem)
The text was updated successfully, but these errors were encountered: