********************
Windows build system
********************
The Windows build system consists of a two-step process. First, the working Enki
application, which runs under Python, is bundled into a self-contained
executable bundle which no longer requires Python or any of Enki's dependencies
(PyQt, etc.) to run. In the second step, this bundle is then packaged into a
Windows installer. The two files below performs these tasks; next, the following
instruction show how to use them.

* ``build_exe.bat``
* ``build_installer.bat``

Converting Enki to a self-contained executable bundle
=====================================================
- Obtain the latest sources from ``git clone https://github.com/andreikop/enki``.
- Install `Enki dependencies <../README.html#dependencies>`_.
- Download `ctags <http://ctags.sourceforge.net/>`_ and unpack to ``enki/../ctags58``.
- Install Python modules. ``pip install flake8 sphinx markdown``.
- Obtain the latest PyInstaller sources using ``git clone
  https://github.com/pyinstaller/pyinstaller.git``. Change to the resulting
  pyinstaller directory then run ``python setup.py install`` to install
  PyInstaller.
- Install pywin32 from http://sourceforge.net/projects/pywin32/files/pywin32/.
- Execute ``win\build_exe.bat`` from the root Enki directory.

Packaging the bundle into a Windows installer
=============================================
- Install `Inno setup <http://www.jrsoftware.org/isdl.php>`_ v. 5.x. to
  ``C:\Program Files\Inno Setup 5``.
- Update package version in ``win/Enki.iss``.
- Execute ``win\build_installer.bat`` from the root Enki directory.
