Changes between Initial Version and Version 1 of HowtoBuildPyCryptoOnWindows


Ignore:
Timestamp:
2011-11-03T21:26:06Z (13 years ago)
Author:
dloss
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoBuildPyCryptoOnWindows

    v1 v1  
     1= How to build eggs for !PyCrypto on Win32 =
     2
     3== Preparation ==
     4Download and install 7-zip (to extract .tar.gz)
     5 
     6http://downloads.sourceforge.net/sevenzip/7z920.exe
     7
     8Download hashdeep, extract to PATH (to check SHA-256 checksums)
     9http://sourceforge.net/projects/md5deep/files/md5deep/md5deep-3.9.2/md5deep-3.9.2.zip/download
     10
     11Download Mingw32 installer and run it.
     12http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110802/mingw-get-inst-20110802.exe/download
     13
     14Download pycrypto:
     15http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.tar.gz
     16
     17Check the SHA-256 hash:
     18{{{C:\> hashdeep -c sha256 pycrypto-2.4.tar.gz}}}
     19
     20Extract pycrypto-2.4.tar.gz with 7-zip.
     21
     22Download Python 2.6 and install it.
     23http://www.python.org
     24
     25Add {{{c:\python26}}} and {{{c:\python26\scripts}}} to your PATH
     26
     27== Compile and build the binary eggs ==
     28
     29Run MingW Shell from start menu, cd to pycrypto-2.4 directory and start the compilation:
     30{{{ python build --compile=mingw32}}}
     31
     32Build the egg (will be placed in the \dist subdirectory:
     33{{{ python -c "import setuptools; execfile('setup.py')" bdist_egg}}}
     34
     35== Test the build ==
     36
     37Run pycrypto test suite:
     38{{{ python setup.py test}}}
     39
     40Download Tahoe-LAFS https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-1.9.0.zip
     41
     42Extract it to a short path without spaces (e.g. C:\). Run the test suite:
     43{{{c:\> python setup.py test}}}
     44
     45
     46== Instructions for Python 2.7 ==
     47
     48Python 2.7 are build in the same way:
     49Download Python 2.7 and install it
     50http://www.python.org
     51
     52Remove {{{c:\python26}}} and {{{c:\python26\scripts}}} from your PATH.
     53Add {{{c:\python27}}} and {{{c:\python27\scripts}}} to your PATH
     54
     55Compile and test pycrypto-24 in the same way as for Python 2.6.