README.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Pynsist is a tool to build Windows installers for your Python applications. The
  2. installers bundle Python itself, so you can distribute your application to
  3. people who don't have Python installed.
  4. Pynsist 2 requires Python 3.5 or above.
  5. You can use `Pynsist 1.x <http://pynsist.readthedocs.io/en/1.12/>`_ on
  6. Python 2.7 and Python 3.3 or above.
  7. For more information, see `the documentation <https://pynsist.readthedocs.io/en/latest/>`_
  8. and `the examples <https://github.com/takluyver/pynsist/tree/master/examples>`_.
  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. # To bundle packages which don't publish wheels, see the docs on the
  30. # config file.
  31. # Other files and folders that should be installed
  32. files = LICENSE
  33. data_files/
  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.