Skip to main content

Python Win App Packager

Distributing end user software on windows should not require the end user to install dependancies, like python.

This tool turns a python program into a package that is suitable to be installed on window via installation software like INNO setup (http://www.jrsoftware.org/isinfo.php).

The method used to create the package copies the source code of the program, the source code from any python libraries and any required python extensions and the DLLs that depend on.

The inclusion of the source code allows users to modify the program, if they so desire.

win_app_packager supports python 3 for win64.

1.5.0 add supoprt for python 3.11 Fix issue with not finding python3XX.dll

If environment variable PY_WIN_APP_DEBUG is set to 1 then show debug information.

Add GUI test for PyQt6

1.4.3 add support for python 3.10 Add test for cli tzlocal. Kits built for 3.9 and 3.10 only.

1.4.2 add support for python 3.9

1.4.1 add support for python 3.8 (includes patched modulefinder.py)

1.4.0 add support for packaging projects from a virtual env (venv).

1.3.0 supports changing the version resource of the created .EXE. The version fields that name the app are set to the app .EXE name.

The –version option allows the app’s version to be set.

Python version 3.5, 3.6 and 3.7 are supported.

Installation

py -3 -m pip install win-app-packager

Usage

C:\Users\barry> py -3 -m win_app_packager
python3 -m win_app_packager build <main-script> <package-folder> [<options>...]
  main-script
    - python main module
  package-folder
    - folder to create package into

  Where <options> are:
    --console
    --cli
        build a windows console progam (the default).
    --gui
        build a windows gui program.
    --name
        name the program (defaults to the <main-script> name).
    --version <version>
        Set the version of the .EXE to be <version>.
        e.g 1.0.2.5
    --install-key <key>
    --install-value <value>
        The install path of the package can be read
        from the windows registry from key HKLM:<key> value <value>
        otherwise the install path is assumed to be the same folder
        that the .EXE files is in.
    --modules-allowed-to-be-missing-file <file-name>
        Add all the modules listed in the file <file-name> to the allowed
        to be missing list. Blank lines and lines starting with a '#' as ignored.
    --merge
        Do not clean out the <package-folder> before building the package.
        Useful for putting multiple programs into one package.
    --verbose
        Output extra information about the build process.
    --debug
        Developer option. Output lots of details about the build process.
    --bootstrap-debug
        Developer option. Copy PDF files and setup a Microsoft Visual
        Studio solution (.sln) file suitable for running the bootstrap
        under the debugger.

python3 -m win_app_packager flags <exe-file> <verbose>'
  exe-file
    - the win_app_package create EXE file to modify
  verbose
    - either "0" or "1". The value to see the python verbose flag to.

Metadata

Release files for win-app-packager 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for win-app-packager 1.5.0
File Size Uploaded
win_app_packager-1.5.0.tar.gz 763.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for win-app-packager 1.5.0
File Interpreter ABI Platform
win_app_packager-1.5.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
win_app_packager-1.5.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
win_app_packager-1.5.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details

Total release size: 3.1 MB

Release files / win_app_packager-1.5.0.tar.gz

Download URL win_app_packager-1.5.0.tar.gz
Size 763.1 kB
Tags Source
SHA-256 checksum
How to use checksums
802c5434afbcc0b022798cf397392600bcc5e8a419a98f1f1dedb4d0e3e0a25a
BLAKE2b-256 checksum
How to use checksums
74b188cfdd04c2efb17cb26e4f9f43c749311822d83c80f226fd5371e3afe2f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / win_app_packager-1.5.0-cp311-cp311-win_amd64.whl

Download URL win_app_packager-1.5.0-cp311-cp311-win_amd64.whl
Size 763.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
770ec45d05d300b6212c27a03d4400dbdf5dc6912ae6d37f5f8bff518e50d7fc
BLAKE2b-256 checksum
How to use checksums
2cc07076ffc6c310d5006bce2c5425208e31dafe7e36865b319de1a4321ec342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / win_app_packager-1.5.0-cp310-cp310-win_amd64.whl

Download URL win_app_packager-1.5.0-cp310-cp310-win_amd64.whl
Size 763.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
998721bcdd3e2458f7e30ac8b18be1dc9d096a4625f538747edf3992af673703
BLAKE2b-256 checksum
How to use checksums
647e5d13af52a26cb2feca46c30e97283efbb719f761da7449218a3cc5effc92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / win_app_packager-1.5.0-cp39-cp39-win_amd64.whl

Download URL win_app_packager-1.5.0-cp39-cp39-win_amd64.whl
Size 763.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
aee27cc479e5c0582b36d9709a142430b84be9d006a5340ef7615b2e2d18ff0a
BLAKE2b-256 checksum
How to use checksums
a001f36044607394786134eba87afd0643b1148ed7275b9053986751b33d6353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.5.0 This release

4 release files

1.4.3

3 release files

1.4.2

5 release files

1.4.1

5 release files

1.4.0

4 release files

1.3.0

4 release files

1.2.5

4 release files

1.2.4

5 release files

1.2.3

5 release files

1.2.2

3 release files

1.2.1

3 release files

1.2.0

3 release files

1.1.4

3 release files

1.1.3

3 release files

1.1.2

3 release files

1.1.1

3 release files

1.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page