index.rst 2.1 KB

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