Skip to main content

WinPackIt is the winpackit.py module, a Python script with no external dependency required. It will package your Python project into a stand-alone Windows distribution.

How does it work.

Python 3.5 introduced the embeddable package distribution on Windows: that is, an “almost complete” Python zipped in a single, non-installer file. While intended mainly for embedding purposes, the opposite is also possible: with some tinkering, one can make this package into a full-fledged self-contained Python environment ready to support a Python application.

Basically, that is what this script is for.

When you run WinPackIt,
  • it will download and unpack a Python embeddable package,

  • download and install Pip into it,

  • download and install any needed external dependency,

  • copy your project files,

  • optionally compile your file to .pyc,

  • leave a friendly install.bat file for the final user to run.

At this point, you may distribute the resulting “build” folder to the final users; all they have to do…
  • drop the folder anywhere on their Windows box,

  • open it and double-clic the install.bat file;

  • this in turn will produce Windows shortcut(s) to the entry-point(s) of your app to double-click, tailored for their machine.

Requirements.

You will need Python 3.6+ to run WinPackIt. No external dependency is required. On the target side, you can produce builds based on any Python 3.5+. You don’t have to match your own Python with the target Python.

Linux/Mac users.

The WinPackIt script runs on Linux too, of course. Except, the build process needs to run the target Python a few times in order to install external packages and compile .pyc files - and that will be impossible on Linux. Then again, if you need no external packages nor compiling, it should work as a charm. See docs for more details.

Usage.

  • pip install winpackit in your virtual environment, or even pipx install winpackit if your really like WinPackIt and would love to have it always at hand;

  • run python -m winpackit my_runner.py;

  • this will produce a my_runner.py runner file for WinPackIt: open it and customize to your liking;

  • run python my_runner.py;

  • this will produce a “build” folder of your project, as specified in the runner file settings, ready to be distributed to the final user.

See the doc file for more details.

Release files for WinPackIt 0.8.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 WinPackIt 0.8.0
File Size Uploaded
WinPackIt-0.8.0.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WinPackIt 0.8.0
File Interpreter ABI Platform
WinPackIt-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.6 kB

Release files / WinPackIt-0.8.0.tar.gz

Download URL WinPackIt-0.8.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fa124dd549585335701c617c27ae7214163c19c1952c99423e81572686117768
BLAKE2b-256 checksum
How to use checksums
6d7547b18e06269dcf16dbd94be7e769f425b73cdb7cda4c9996c9184055684d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2

Release files / WinPackIt-0.8.0-py3-none-any.whl

Download URL WinPackIt-0.8.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d22da51c76db1099dd1045d2a10cdb61e740ec9728303ed7c9929a8ca4855e0
BLAKE2b-256 checksum
How to use checksums
8a00727ed47d99ac26798639758bd98306553280592dc10e5b0bc345b93c95f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

1 release file

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