Closed amcgregor closed 7 years ago
Hi there, a couple things I can think of off the top of my head. First is that I haven't written the C extension modules to work with Python3 so there might well be issues using the module with v3.5.2 (it does work against all versions of Python2 I've tested). I think the installation issue may be in regard to where clang
looks for header files, I'll have to look at that a little further. I do plan to make this package Python3 compatible but at the moment the only version that is stable / tested is on Python2, sorry about that.
No worries, I was suspecting it was something like that. For when you do get to Python 3 compatibility, I'd highly, highly recommend using the cffi package, as it's extremely portable across runtimes.
I just pushed some changes for python3 compatibility, I tested them in a virtualenv using python3.4 and they cleared the test suite. Haven't benchmarked performance but I see no reason it would be much different from the python2 performance. Let me know if you're still having trouble ($ pip install fastecdsa==1.2.1
should do the trick).
Great success! Thank you for the extremely prompt turnaround on this!
Tested on Python 3.5.2 in a venv on macOS Sierra via:
# This is more robust than the uglier version passed to PIP.
export LDFLAGS="-L$(brew --prefix gmp)/lib" CFLAGS="-I$(brew --prefix gmp)/include"
pip install 'fastecdsa==1.2.1'
python -c "from fastecdsa import curve, ecdsa, keys"
The exception that was raised is no longer. Thanks again!
Happy to hear that did the trick for you! :)
[for historical reference issue fixed in 3c2162c]
Howdy!
I'm having some trouble installing
fastecdsa
on Python 3.5.2, installed via the official packages, with homebrew-suppliedlibgmp
.In a fresh virtual environment,
pip install fastecdsa
explodes gloriously:With
--global-option=build_ext --global-option="-I/usr/local/include" --global-option="-L/usr/local/lib"
in there, we get further:However, when running
python -c "from fastecdsa import curve, ecdsa, keys"
:What might be going on here?