Comments (12)
My understanding is that PyPy has no stable ABI and binary wheels are impossible?
C.f. also https://pypi.python.org/pypi/cryptography/1.8.1
cc @dstufft & @reaperhulk for confirmation
from argon2-cffi.
Binary wheels aren't impossible but you need a different wheel for every pypy release (e.g. pypy2 5.8 is pp258), which makes them operationally impractical.
from argon2-cffi.
Oh OK. Wasn’t there a time when they didn’t even tag the releases? I seem to remember it might have even be me who opened a bug somewhere. :)
from argon2-cffi.
I believe the current wheel tags aren't really from the pypy project, but rather the way the pep425tags
module (which has a shared history but divergent codebase between pip/wheel) chose to handle it. dstufft probably knows more though.
from argon2-cffi.
Then I must have totally misunderstood the purpose of cffi
. I thought the wheel would just contain the python stuff and a pre-compiled libargon2
and cffi
would do the rest.
from argon2-cffi.
CFFI has an ABI and a API mode, in the ABI mode it functions as you say, but it depends on a stable ABI on the library. In the API mode CFFI will compile a module for each library.
from argon2-cffi.
And yea, I think PyPy has a stable ABI now and we'll use it, but we need to implement the >=
behavior that we implemented for CPython's stable ABI.
from argon2-cffi.
@dstufft is there an issue open on pypa/pip for that? If we can nail down the parameters I'd be willing to do a PR updating pep425tags
to handle it.
from argon2-cffi.
Not that I recall, but afaik the current situation is that we produce tags like pp254-pypy_41-win32
, (interpreter, ABI, platform) so the ABI portion is correct, but the interpreter is still locking it to a specific version of PyPy. On CPython what we did was have it generate all previous versions of the cpXY
tags in the huge list.
This is a bit more complicated for PyPy because (A) I'm not sure what the best way to detect a stable ABI is there, maybe just saying if it returns something that's the ABI and (B) they have a lot more versions to generate so the list can get quite large, we might want to invent a short hand like pp2
and pp3
to indicate PyPy Python v2.x and pp3 for PyPy Python v3.x-- but that would require a distutils-sig post.
from argon2-cffi.
I just learned that one can use newer pypy(3) versions on Travis. With those it works out of the box.
The naming seems to come from pyenv. The newest ones I was able to get working are these:
- "pypy-5.4.1"
- "pypy3.3-5.2-alpha1"
from argon2-cffi.
Does it work with pypy3.7-v7.3.4-win64 ?
from argon2-cffi.
This is fixed by the outsourcing to https://github.com/hynek/argon2-cffi-bindings
We currently carry wheels for pypy3.7 and pypy3.8.
Feel free to try to pip-install argon2-cffi-bindings and report back if it's still broken.
from argon2-cffi.
Related Issues (20)
- RFC is no longer a draft (RFC9106); default parameter choice out of date HOT 4
- 21.2.0: pep517 does not build cython modules HOT 6
- 21.1.0: `notebook` test suite is crashing with SIGILL in _cffi_backend.cpython.*so DSO HOT 11
- Inconsistent advice for key derivation HOT 5
- How to avoid timing attacks? HOT 1
- hash function return + / verify issue with sqlite HOT 3
- Question: Can output from argon2.low_level.hash_secret_raw() → bytes directly used to derive aes key? HOT 3
- Associated data cannot be specified in the low_level functions HOT 10
- Support password verification without sending the password from client to server HOT 5
- Make hash verification return True or False HOT 4
- Second salt HOT 1
- hash() got an unexpected keyword argument 'salt' HOT 1
- would a python-3.9 wheel be possible ? HOT 13
- seems missing _ffi.abi3.so when pip installing in docker HOT 7
- Failed Source Build on Apple Silicon HOT 9
- Wheel support for linux aarch64 HOT 4
- Unable to install on Xavier NX HOT 1
- Fail to install by pip on macOS 11.0.1 Big Sur HOT 11
- 20.1.0: sphinx warnings HOT 4
- 20.1.0: pytest warnings HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argon2-cffi.