diff --git a/HowtoBuildPyCryptoOnWindows.md b/HowtoBuildPyCryptoOnWindows.md new file mode 100644 index 0000000..8139a29 --- /dev/null +++ b/HowtoBuildPyCryptoOnWindows.md @@ -0,0 +1,55 @@ +# How to build eggs for PyCrypto on Win32 + +## Preparation +Download and install 7-zip (to extract .tar.gz) + + + +Download hashdeep, extract to PATH (to check SHA-256 checksums) + + +Download Mingw32 installer and run it. + + +Download pycrypto: + + +Check the SHA-256 hash: +`C:\> hashdeep -c sha256 pycrypto-2.4.tar.gz` + +Extract pycrypto-2.4.tar.gz with 7-zip. + +Download Python 2.6 and install it. + + +Add `c:\python26` and `c:\python26\scripts` to your PATH + +## Compile and build the binary eggs + +Run MingW Shell from start menu, cd to pycrypto-2.4 directory and start the compilation: +` python build --compile=mingw32` + +Build the egg (will be placed in the \dist subdirectory: +` python -c "import setuptools; execfile('setup.py')" bdist_egg` + +## Test the build + +Run pycrypto test suite: +` python setup.py test` + +Download Tahoe-LAFS + +Extract it to a short path without spaces (e.g. C:\). Run the test suite: +`c:\> python setup.py test` + + +## Instructions for Python 2.7 + +Python 2.7 are build in the same way: +Download Python 2.7 and install it + + +Remove `c:\python26` and `c:\python26\scripts` from your PATH. +Add `c:\python27` and `c:\python27\scripts` to your PATH + +Compile and test pycrypto-24 in the same way as for Python 2.6.