~zseil/pyopenssl/privatekey-callback-fixes

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Jean-Paul Calderone
  • Date: 2009-11-12 02:59:29 UTC
  • mto: This revision was merged to the branch mainline in revision 123.
  • Revision ID: exarkun@divmod.com-20091112025929-mz25pbxbyl8trmky
A few minor edits to the install text, plus reflowing to make the diff really hard to read, sweet!  Also mention some more people who've been invaluable to the Windows support effort

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
time of this writing, which is the same compiler used for building the
48
48
official Python 2.6 installers.
49
49
 
50
 
If you want to build PyOpenSSL for an older Python version, it is preferred
 
50
If you want to build pyOpenSSL for an older Python version, it is preferred
51
51
to build OpenSSL yourself, either with the Visual Studio 2003 compiler or
52
52
with the MinGW compiler.  This way you avoid all potential incompatibilities
53
 
between different versions of runtime library (msvcrt.dll). To build OpenSSL
54
 
folow the instructions in its source distribution and make sure that you build
55
 
a shared library, not a static one.  PyOpenSSL fails some of its tests when
56
 
linked with the static OpenSSL libraries. Use the same compiler for OpenSSL
57
 
that you will use for PyOpenSSL later. Make sure that OpenSSL is properly
58
 
installed before continuing.  To install OpenSSL when building with MinGW, use
59
 
the folowing script:
 
53
between different versions of runtime library (msvcrt.dll).  To build
 
54
OpenSSL follow the instructions in its source distribution and make sure
 
55
that you build a shared library, not a static one.  pyOpenSSL fails some of
 
56
its tests when linked with the static OpenSSL libraries.  Use the same
 
57
compiler for OpenSSL that you will use for pyOpenSSL later.  Make sure that
 
58
OpenSSL is properly installed before continuing.  To install OpenSSL when
 
59
building with MinGW, use the folowing script:
60
60
 
61
61
set OPENSSL_INSTALL_DIR=%1
62
62
mkdir %OPENSSL_INSTALL_DIR%
70
70
copy /b .\out\*.a          %OPENSSL_INSTALL_DIR%\lib
71
71
 
72
72
Ensure that OpenSSL's openssl.exe executable can be found on PATH before
73
 
running PyOpenSSL's setup script. The setup script finds OpenSSL's include dir
74
 
and lib dir based on the location of openssl.exe, and the test suite requires
75
 
openssl.exe for output comparison. Alternatively, you can specify the
76
 
--with-openssl option to setup.py's build_ext command with the path to the
77
 
OpenSSL installation dir:
 
73
running pyOpenSSL's setup script.  The setup script finds OpenSSL's include
 
74
dir and lib dir based on the location of openssl.exe, and the test suite
 
75
requires openssl.exe for output comparison.  Alternatively, you can specify
 
76
the --with-openssl option to setup.py's build_ext command with the path to
 
77
the OpenSSL installation dir:
78
78
 
79
79
  > python setup.py build_ext --with-openssl=C:\path\to\openssl build
80
80
 
81
 
PyOpenSSL is known to build with mingw32 for Python 2.3 through Python 2.5.
 
81
pyOpenSSL is known to build with mingw32 for Python 2.3 through Python 2.5.
82
82
Before using the mingw32 compiler for Python 2.3, you will have to create
83
83
a Python library that MinGW understands. Find and download the pexports
84
84
program, put it and MinGW's bin directory on path, then run from Python's
118
118
to get more information.
119
119
 
120
120
Big thanks to Itamar Shtull-Trauring, Oleg Orlov, Zooko O'Whielacronx, Chris
121
 
Galvan, and #python and #distutils on FreeNode for their help with Windows
122
 
build instructions.
 
121
Galvan, Žiga Seilnacht, and #python and #distutils on FreeNode for their
 
122
help with Windows build instructions and to Michael Schneider for providing
 
123
Windows build hosts.
123
124
 
124
125
-- Documentation --
125
126