Skip to content

build and publish 3.6 + 3.7 wheels for OSX and Linux? #4382

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

Closed
kwlzn opened this issue Aug 3, 2018 · 3 comments
Closed

build and publish 3.6 + 3.7 wheels for OSX and Linux? #4382

kwlzn opened this issue Aug 3, 2018 · 3 comments

Comments

@kwlzn
Copy link

kwlzn commented Aug 3, 2018

currently, on pypi here: https://pypi.org/project/cryptography/#files

the latest version of cryptography publishes a platform comprehensive set of wheels for python 2.7:

cryptography-2.3-cp27-cp27m-macosx_10_6_intel.whl (1.5 MB)
cryptography-2.3-cp27-cp27m-manylinux1_i686.whl (1.9 MB)
cryptography-2.3-cp27-cp27m-manylinux1_x86_64.whl (2.1 MB)
cryptography-2.3-cp27-cp27mu-manylinux1_i686.whl (1.9 MB)
cryptography-2.3-cp27-cp27mu-manylinux1_x86_64.whl (2.1 MB)
cryptography-2.3-cp27-cp27m-win32.whl (1.1 MB)
cryptography-2.3-cp27-cp27m-win_amd64.whl (1.3 MB)

for 3.6/3.7, only win32 wheels are provided:

cryptography-2.3-cp36-cp36m-win32.whl (1.1 MB)
cryptography-2.3-cp36-cp36m-win_amd64.whl (1.3 MB)
cryptography-2.3-cp37-cp37m-win32.whl (1.1 MB)
cryptography-2.3-cp37-cp37m-win_amd64.whl (1.3 MB)

this makes it very easy to consume cryptography as third party dep directly from pypi when using 2.7 - but less so when using modern 3.x - as a compilation step is needed (and thus requires ffi/openssl/etc devel packages).

would there be some way to begin building and publishing a more platform-comprehensive set of wheels for both 3.6 and 3.7?

we could happily provide a PR for this if that sounds reasonable (and assuming there's some reasonable way to test a contrib PR - the build seems to rely on an internal Jenkins instance, fwict?).

@reaperhulk
Copy link
Member

On macOS and linux we publish limited API wheels (tagged abi3) that work with 3.4+. We can't publish those on Windows for a variety of unfortunate reasons that will hopefully be gone in the next year or two, which is why you see cp37 specific wheels there.

If your pip isn't finding the abi3 wheels you'll need to upgrade it.

@kwlzn
Copy link
Author

kwlzn commented Aug 13, 2018

ah, thanks.

@zooba
Copy link

zooba commented Mar 27, 2019

@reaperhulk Sorry to resurrect the thread, but even the latest version of pip won't resolve the abi3 wheels as a dependency when doing pip download for an alternate platform because of pip's restrictions here.

There is more detailed analysis at Azure/azure-functions-core-tools#1150 and a workaround by downloading cryptography separately and renaming the wheel so that it can be resolved.

There's also a pip bug at pypa/pip#6070 though as usual when one particular wheel is causing problems it may be easier (and certainly faster) to fix it here first until the tools can fully support your intended workload.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants