README.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. At present, pynsist requires Python 3.3 or above, or Python 2.7.
  5. For more information, see `the documentation <http://pynsist.readthedocs.org/en/latest/>`_
  6. and `the examples <https://github.com/takluyver/pynsist/tree/master/examples>`_.
  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. 3. Run ``pynsist installer.cfg`` to generate your installer. If ``pynsist`` isn't
  30. found, you can use ``python -m nsist installer.cfg`` instead.