A set of scripts designed to streamline the process of downloading, creating a virtual environment, building, and extracting PyInstaller to prevent false-positive virus detections.
A venv
is automatically created to build pyinstaller in the root of the project, so your python install is left untouched.
This utility is intended for use on Windows 8 or greater.
- Python (what ever is supported by pyinstaller at the time you are building it)
- Administrative privileges is required to run the scripts, however it will automatically elevate it for you.
-
Clone this repository to a directory of your choice.
-
Ensure you have Python installed on your Windows operating system (Windows 8 or higher).
-
Ensure you have either MinGW or Chocolatey installed. (Chocolatey is used automatically to install MinGW64).
-
Open a terminal inside the cloned directory.
-
Run the command
python run.py
. -
Once the process is complete, an Explorer window will open with the path to
custom_pyinstaller
. -
You can then use this custom pyinstaller to
poetry add --editable PATH_TO_custom_pyinstaller
orpip install PATH_TO_custom_pyinstaller
to install in your current projectsvenv
. The path should be in the root of the custom_pyinstaller folder pointing towards setup.py