1
2.. _building:
3
4Building
5********
6
7.. _building#unix:
8
9UNIX
10====
11
12.. _building#windows:
13
14Windows
15=======
16
17.. _building#requirements:
18
19Requirements
20------------
21
22* `Innosetup <http://www.jrsoftware.org/isinfo.php>`_
23* `py2exe <http://www.py2exe.org/>`_
24
25Consult the README in the source distribution for the build dependencies.
26
27.. _building#building_python_packages_with_c_extensions_under_windows:
28
29Building Python packages with C extensions under Windows
30^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
32In order to build modules which have C extensions, you will need either the
33Visual Studio C++ compiler or `MinGW
34<http://sourceforge.net/projects/mingw/files/MSYS/Extension/>`_.
35
36Make sure that your Visual Studio C++ or MinGW program path is part of your
37system's program path, since the Python build system requires this.
38
39To build and install a package with MinGW, you need to execute::
40
41  python setup.py build -c mingw32 install
42
43from the command line.
44
45To build a Windows installer when using MinGW, execute::
46
47  python setup.py build -c mingw32 bdist_wininst
48
49.. _building#building:
50
51Building
52--------
53
54Simply execute::
55
56  python setup.py innosetup
57
58The generated file can be found under ``translate-toolkit-<version>\Output``
59(where ``<version>`` is the software version).
60
61