File: building.rst

package info (click to toggle)
translate-toolkit 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,856 kB
  • sloc: python: 56,898; sh: 2,624; makefile: 242; xml: 48; pascal: 40; java: 16
file content (60 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

.. _building:

Building
********

.. _building#unix:

UNIX
====

.. _building#windows:

Windows
=======

.. _building#requirements:

Requirements
------------

* `Innosetup <http://www.jrsoftware.org/isinfo.php>`_
* `py2exe <http://www.py2exe.org/>`_

Consult the README in the source distribution for the build dependencies. 

.. _building#building_python_packages_with_c_extensions_under_windows:

Building Python packages with C extensions under Windows
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In order to build modules which have C extensions, you will need either the
Visual Studio C++ compiler or `MinGW
<http://sourceforge.net/projects/mingw/files/MSYS/Extension/>`_.

Make sure that your Visual Studio C++ or MinGW program path is part of your
system's program path, since the Python build system requires this.

To build and install a package with MinGW, you need to execute::

  python setup.py build -c mingw32 install

from the command line.

To build a Windows installer when using MinGW, execute::
  
  python setup.py build -c mingw32 bdist_wininst

.. _building#building:

Building
--------

Simply execute::

  python setup.py innosetup

The generated file can be found under ``translate-toolkit-<version>\Output``
(where ``<version>`` is the software version).