3
Building and Installing
4
=======================
6
These instructions can also be found in the file ``INSTALL``.
8
I have tested this on Debian Linux systems (woody and sid), Solaris 2.6 and
9
2.7. Others have successfully compiled it on Windows and NT.
13
Building the Module on a Unix System
14
------------------------------------
16
pyOpenSSL uses distutils, so there really shouldn't be any problems. To build
21
If your OpenSSL header files aren't in ``/usr/include``, you may need to supply
22
the ``-I`` flag to let the setup script know where to look. The same goes for
23
the libraries of course, use the ``-L`` flag. Note that ``build`` won't accept
24
these flags, so you have to run first ``build_ext`` and then ``build``!
27
python setup.py build_ext -I/usr/local/ssl/include -L/usr/local/ssl/lib
30
Now you should have a directory called ``OpenSSL`` that contains e.g.
31
``SSL.so`` and ``__init__.py`` somewhere in the build dicrectory,
34
python setup.py install
36
If you, for some arcane reason, don't want the module to appear in the
37
``site-packages`` directory, use the ``--prefix`` option.
39
You can, of course, do::
41
python setup.py --help
43
to find out more about how to use the script.
47
Building the Module on a Windows System
48
---------------------------------------
50
Big thanks to Itamar Shtull-Trauring and Oleg Orlov for their help with
51
Windows build instructions. Same as for Unix systems, we have to separate
52
the ``build_ext`` and the ``build``.
54
Building the library::
56
setup.py build_ext -I ...\openssl\inc32 -L ...\openssl\out32dll
59
Where ``...\openssl`` is of course the location of your OpenSSL installation.
61
Installation is the same as for Unix systems::
65
And similarily, you can do::
69
to get more information.