index.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. pynsist |version|
  2. =================
  3. pynsist is a tool to build Windows installers for your Python applications. The
  4. installers bundle Python itself, so you can distribute your application to
  5. people who don't have Python installed.
  6. At present, pynsist requires Python 3.3 or above, or Python 2.7.
  7. Quickstart
  8. ----------
  9. 1. Get the tools. Install `NSIS <http://nsis.sourceforge.net/Download>`_, and
  10. then install pynsist from PyPI by running ``pip install pynsist``.
  11. 2. Write a config file ``installer.cfg``, like this:
  12. .. code-block:: ini
  13. [Application]
  14. name=My App
  15. version=1.0
  16. # How to launch the app - this calls the 'main' function from the 'myapp' package:
  17. entry_point=myapp:main
  18. icon=myapp.ico
  19. [Python]
  20. version=3.4.0
  21. [Include]
  22. # Importable packages that your application requires, one per line
  23. packages = requests
  24. bs4
  25. html5lib
  26. # Other files and folders that should be installed
  27. files = LICENSE
  28. data_files/
  29. See :doc:`cfgfile` for more details about this.
  30. 3. Run ``pynsist installer.cfg`` to generate your installer. If ``pynsist`` isn't
  31. found, you can use ``python -m nsist installer.cfg`` instead.
  32. Contents
  33. --------
  34. .. toctree::
  35. :maxdepth: 2
  36. cfgfile
  37. installers
  38. faq
  39. releasenotes
  40. api/index
  41. examples
  42. See also the `examples folder <https://github.com/takluyver/pynsist/tree/master/examples>`_
  43. in the repository.
  44. The API is not yet documented here, because I'm still working out how it should
  45. be structured. The functions and classes have docstrings, and you're welcome to
  46. use them directly, though they may change in the future.
  47. .. seealso::
  48. `pynsist source code on Github <https://github.com/takluyver/pynsist>`_
  49. Indices and tables
  50. ==================
  51. * :ref:`genindex`
  52. * :ref:`modindex`
  53. * :ref:`search`