PyCrypto Windows binaries incomplete

Bug #929944 reported by Wernight
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Python-Crypto
New
Low
Unassigned

Bug Description

Pycrypto is used by Fabric among others. However Windows binaries are not provided or are incomplete. http://www.voidspace.org.uk/python/modules.shtml for example doesn't contain the OSRNG module (among others).

ActivePython should have a working version but that's commercial (yes PyCrypto is only in the commercial version).

Most development are still done on Windows, it would be really helpful to have PyCrypto provide Winodws binaries and even better if they could come via PIP.

Revision history for this message
Darsey Litzenberger (dlitz) wrote :

Thanks. If you'd like to contribute patches to fix build issues on Windows, or to add a "HOW TO BUILD ON WINDOWS" document, I'm willing to merge them.

Changed in pycrypto:
importance: Undecided → Wishlist
importance: Wishlist → Low
Revision history for this message
Wernight (werner-beroux) wrote :

I found ActivePython x86 seem to provide Fabric binaries in the community edition, only x64 doesn't.

It should be built with Visual Studio 2008 as it should be the same a Python but I heard people compile it with other tools as well. I can't tell how to build. What I can tell is how to retrieve from ActivePython binaries and make it portable.

Revision history for this message
Byun, Kyuhong aka Francisco (combacsa) wrote :

Maybe this article contains some parts of "HOW TO BUILD ON WINDOWS". It's written in Korean though ...

http://imp17.com/tc/myevan/204

Revision history for this message
Geert Jansen (geertj) wrote :

Dwayne, it would be great if you could provide windows binaries on the package index. Below are instructions on how to build on Windows. I am doing this on Windows XP. That should produce a binary that can be used on Windows 7 and 8 as well, IIRC.

1. Install MinGW from www.mingw.org. I downloaded the "mingw-get-inst-20120424" installer. Then I ran the installer selecting C:\MinGW as the installation target directory. In the installer, I only selected to download the C compiler, and nothing else.
2. Install a binary Python from www.python.org. I downloaded 2.7.3 and installed into C:\Python.
3. Install the following patch to distutils https://gist.github.com/4466320. It fixes an issue where distutils will use a compiler option that does not exist anymore.
4. Do a "python setup.py bdist_wininst". This will result in a executable windows installer in the "dist" directory.
5. Repeat steps 2..4 for every Python version that you want to support.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.