Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f9d20baf2d42bbb9f9c5746dba0abad5 > files > 79

python-translate-doc-1.10.0-3.mga4.noarch.rpm


.. _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/project/showfiles.php?group_id=2435&package_id=240780>`_.

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).