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

Port to cryptography. #288

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

Conversation

tomprince
Copy link

No description provided.

@rossengeorgiev
Copy link
Member

rossengeorgiev commented Sep 9, 2020

Thanks, but in v1.0.0 I specifically moved away from cryptography, because it made installation more error prone. See b31354f, and even you go further back you can find the move to cryptography before that #17

@rossengeorgiev
Copy link
Member

Potentially, both could be supported with cryptography being preferred (should have better performance) if available. Also, have it as an extra in setup.py

@tomprince
Copy link
Author

I'm curious what kind of errors you are getting installing cryptography? I know the maintainers of it, and I know they spend a bunch of effort to ensure that there are wheels for all major platforms, so that installation shouldn't be an issue. I think the only semi-common platform they don't provide wheels for is alpine linux (and I suspect that is largely because there isn't a good standard of how to build compatible wheels; see pypa/manylinux#37 for example).

@rossengeorgiev
Copy link
Member

It was long time ago, and I can't recall specifics. But it made installs slow and error prone due compilation step or having to install various libraries. Cygwin was painful, and I recall issues with linux and windows installs. The switch to pycryptodome was solely to get rid of these issues.

I've thought before about simply having both, and preferring cryptography if its available. Best of both worlds.

@tomprince
Copy link
Author

due compilation step or having to install various libraries

That should no longer be necessary; cryptography added manylinux wheels in v2.0 (2017), which will be used by any recent version of pip (>8.1; 2016). (Although there aren't cygwin wheels).

@tomprince tomprince force-pushed the cryptography branch 2 times, most recently from 08fd8f3 to c16b85c Compare February 11, 2021 21:09
@ValvePython ValvePython deleted a comment from sonarcloud bot Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants