-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support for Python 2.7.x on windows #32
Comments
Thanks for the heads up! The issue is that visual studios doesn't support C99 standard (no stdint.h), which the twofish python package depends on. We might be able to switch to a pure-python implementation of the twofish cipher for windows: http:https://www.bjrn.se/code/twofishpy.txt Gpgme has a twofish cipher implementation available -- that may be another possibility: https://gnupg.org/documentation/manuals/gcrypt/Available-ciphers.html#Available-ciphers However, pure-python seems the more realistic fix. I don't know if anybody has the appetite for new bindings for this old algorithm. |
More useful for you, try setting python to use MinGW which does support C99: http:https://cython.readthedocs.io/en/latest/src/tutorial/appendix.html
|
@kurtbrose : Thx for your answer ;) |
At the moment, the installation on Windows platform / Python 2.7.x is failing with this error (tested on appveyor) :
c:\projects\pyjks.tox\py\include\site\python2.7\twofish:
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
copying twofish.py -> build\lib.win32-2.7
running build_ext
building '_twofish' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\twofish-0.3
C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Itwofish-0.3 -Ic:\python27\include -Ic:\projects\pyjks.tox\py\PC /Tctwofish-0.3/twofish.c /Fobuild\temp.win32-2.7\Release\twofish-0.3/twofish.obj
twofish.c
c:\users\appveyor\appdata\local\temp\1\pip-build-in0ieu\twofish\twofish-0.3\twofish.h(13) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: command 'C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
Any advice to make it work ?
Thx for your help
The text was updated successfully, but these errors were encountered: