Skip to main content

Build NSIS installers for Python applications.

Project description

Pynsist is a tool to build Windows installers for your Python applications. The installers bundle Python itself, so you can distribute your application to people who don’t have Python installed.

For more information, see the documentation and the examples.

Pynsist 2.7 requires Python 3.6 or above. You can use Pynsist 2.6 on Python 3.5, and Pynsist 1.x on Python 2.7 and Python 3.3 or above, but these versions won’t get further updates.

Quickstart

  1. Get the tools. Install NSIS, and then install pynsist from PyPI by running pip install pynsist.

  2. Write a config file installer.cfg, like this:

    [Application]
    name=My App
    version=1.0
    # How to launch the app - this calls the 'main' function from the 'myapp' package:
    entry_point=myapp:main
    icon=myapp.ico
    
    [Python]
    version=3.6.3
    
    [Include]
    # Packages from PyPI that your application requires, one per line
    # These must have wheels on PyPI:
    pypi_wheels = requests==2.18.4
         beautifulsoup4==4.6.0
         html5lib==0.999999999
    
    # To bundle packages which don't publish wheels, or to include directly wheel files
    # from a directory, see the docs on the config file.
    
    # Other files and folders that should be installed
    files = LICENSE
        data_files/
  3. Run pynsist installer.cfg to generate your installer. If pynsist isn’t found, you can use python -m nsist installer.cfg instead.

This example illustrates how to use Pynsist by itself, for simple projects. There are other options which can make it easier to integrate as a step in a more complex build process. See the docs for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynsist-2.7.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynsist-2.7-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file pynsist-2.7.tar.gz.

File metadata

  • Download URL: pynsist-2.7.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for pynsist-2.7.tar.gz
Algorithm Hash digest
SHA256 d97a6afc2dc6b1dc7dfe7838e363ea61344948f582a8d25cdf52719ef5bb1c6a
MD5 4c6764f7fc5501721fcac5e7b481c692
BLAKE2b-256 0f97614597dad300c2e9e742298a6765041aa2f778b7185a449f6352b147ca76

See more details on using hashes here.

File details

Details for the file pynsist-2.7-py3-none-any.whl.

File metadata

  • Download URL: pynsist-2.7-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for pynsist-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 87c6d24fe68a11c904dc27681330527ff3ee1846f28cfa35c8b630bf42e3b6c5
MD5 4f45947d5adf662e1de516672f0d9e02
BLAKE2b-256 61aa70923b9769eb7b27db6dfde6e90c1dd28384bb8cfb5714033aec30c9de54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page