scottbelden / docker-winpyinstaller

Using docker to build Windows python executables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTICE: Due to bit rot this repo no longer works as intended. I don't have the need for the utility anymore and so I'm not going to spend the time to fix the problem or update it. If someone does use it and is so kind to make a pull request that fixes the current issues I would be glad to merge them. Thanks!

docker-winpyinstaller

This is intended to use docker to create a windows executable of a python script. Therefore, you can develop a script on a non Windows environment, package it up into a single executable, and then move that executable to a Windows environment where it can be run.

Building the image

To build the image, simply do the following:

./build/build.sh

This will install wine, Windows python, pywin32, pyinstaller, as well as the Windows compiler for Python so that scripts requiring compiled dependencies can be built.

Building the Windows executable

To build the executable, simply do the following:

./run.sh /path/to/source /path/to/script.py

If your script has dependencies, they should be defined in a requirements.txt in the source folder.

About

Using docker to build Windows python executables

License:MIT License


Languages

Language:Python 93.7%Language:Shell 4.9%Language:Dockerfile 1.4%