1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
PyInstallerEx
Enhanced PyInstaller packaging tool that creates single-file executable programs with installation capabilities
🎯 Project Overview
PyInstallerEx is an enhanced packaging tool based on PyInstaller that can package Python applications into single-file executable programs with installation capabilities. Unlike traditional PyInstaller which creates standalone executable files, the installer executable files created by PyInstallerEx have the following characteristics:
- Extract on first run: Applications are extracted to a temporary directory
- Reuse installed versions: Subsequent runs use already extracted versions
- Automatic cleanup: Intelligent management of temporary files
🔧 Environment Requirements
- Python >= 2.7
- PyInstaller >= 3.2.1
- Go >= 1.21 (for building launchers)
⚙️ How It Works
- PyInstaller Packaging: Use PyInstaller's
--onedirmode to create a complete application directory - Configuration Processing: Apply user configurations and generate metadata
- Compression: Compress the application directory into a ZIP file
- Binary Merging: Merge the platform-specific launcher binary with the ZIP file
- Final Executable: Create a single executable file that handles extraction and execution
✅ Completed Features
1. Core Packaging Features
- ✅ PyInstaller Integration: Use
--onedirmode to create complete application directories - ✅ Configuration System: JSON format configuration file support
- ✅ ZIP Compression: Compress application directories into ZIP files
- ✅ Binary Merging: Merge Go launcher with ZIP file into final executable file
2. Go Launcher Implementation
- ✅ Cross-platform Support: Windows, Linux x86, Linux ARM
- ✅ Smart Installation: Automatically extract on first run, reuse installed versions on subsequent runs
- ✅ Configuration Parsing: Read and process configuration information from executable files
- ✅ Temporary Directory Management: Automatic management of temporary files and cleanup
3. Project Structure Improvement
- ✅ Modular Design: Clear code organization structure
- ✅ Error Handling: Complete exception handling and logging
- ✅ Build Scripts: Automated compilation and testing scripts
- ✅ Complete Documentation: Detailed usage instructions and API documentation
🌟 New Features
1. Enhanced Cache Management
- ✅ Smart Cache Reuse: Check if the application is already installed before extracting (based on
ex_{filename}_{md5}directory pattern) - ✅ Automatic Old Cache Cleanup: Before extracting, search and remove old directories with the same filename prefix (
ex_{filename}_*) - ✅ Cache Isolation: Ensure only one version of the application is kept in the temporary directory
2. Improved Configuration Handling
- ✅ Embedded Configuration Reading: Read configuration from executable files for better portability
- ✅ Flexible Configuration Override: Command-line parameters override configuration files which override embedded defaults
🛠 Development
Build from Source
git clone <repository>
cd PyInstallerEx-master
# Development test installation
pip install -e .
# Build package using traditional setup.py
python setup.py sdist bdist_wheel
# Uninstall old version
pip uninstall pyinstallerex
# Test installation
pip install dist/pyinstallerex-0.1.6-py2-none-any.whl
# Test packaging
python -m PyInstallerEx test/test_script.py
# Build Go launcher
./build_launchers.sh
Testing
# Test using included test script
python -m PyInstallerEx test/test_script.py --cfg test/test_config.json
# Or from test directory
cd test
python -m PyInstallerEx test_script.py --cfg test_config.json
📦 Installation
Install the latest version from PyPI:
pip install pyinstallerex
🚀 Usage
Basic usage:
# Using pyinstallerex command
pyinstallerex your_script.py
# Using PyInstallerEx command
PyInstallerEx your_script.py
# Using Python -m method (recommended)
python -m PyInstallerEx your_script.py
Using configuration file:
pyinstallerex your_script.py --cfg your_config.json
📝 Changelog
-
2025-11-07 V 0.1.6
- Fixed issue with missing launcher binaries in package distribution
- Improved launcher file search logic to support package data resources
- Enhanced cross-platform compatibility
-
2025-11-06 V 0.1.5
- Updated documentation with latest version information and changelog
-
2025-11-06 V 0.1.4
- Fixed issue with launcher file not found on Linux systems
- Improved launcher file search logic to support files installed via data_files
- Enhanced cross-platform compatibility
-
2025-11-06 V 0.1.3
- Fixed package distribution issue to ensure launcher binary files are correctly included
- Improved package build and installation process
-
2025-11-06 V 0.1.2
- Enhanced cache management with automatic cleanup of old directories
- Improved configuration handling with embedded configuration reading
- Added support for Linux ARM64 platform
- Added command-line option for specifying output filename
-
2025-10-23 V 0.1.1
- Initial version, implemented temporary file installation functionality
- Complete Go launcher implementation
- Cross-platform support (Windows, Linux x86/ARM)
- Configuration system
- Automated build scripts
📄 License
MIT License - see LICENSE file for details
Metadata
Release files for PyInstallerEx 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyinstallerex-0.1.6.tar.gz | 7.4 MB | Without provenance | Details for pyinstallerex-0.1.6.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyinstallerex-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for pyinstallerex-0.1.6-py3-none-any.whl |
| pyinstallerex-0.1.6-py2-none-any.whl | Python 2 | none | any | Details for pyinstallerex-0.1.6-py2-none-any.whl |
Total release size: 7.7 MB
Release files / pyinstallerex-0.1.6.tar.gz
| Download URL | pyinstallerex-0.1.6.tar.gz |
|---|---|
| Size | 7.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07a7143f4bf0be692da988c4642e52e82731d5b1cb0bac2831c98dabe616fb89
|
|
BLAKE2b-256 checksum How to use checksums |
9a0f8a7d871636fb3ed4a2e379e41aad0475c787f70b76cc1ee7ea7064e11e23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
|
Release files / pyinstallerex-0.1.6-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyinstallerex-0.1.6-py3-none-any.whl |
|---|---|
| Size | 276.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae787e6484c27ec8aa65d856273b886684bec348d4796c1e88f6f3a3ce6acab2
|
|
BLAKE2b-256 checksum How to use checksums |
d709172e7a138f65448968095cc067d3b0c6cb1deaec324e659718d25bda8656
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / pyinstallerex-0.1.6-py2-none-any.whl
| Download URL | pyinstallerex-0.1.6-py2-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b648497ff8a41649adccefff553af377097417acf52c83915d75838aff74c836
|
|
BLAKE2b-256 checksum How to use checksums |
e0fd15b9cb189d69debbe3999b9815325f3d848b036ca175a738f6230a13b55a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
|
Security for PyInstallerEx 0.1.6
Upload timing
Release file added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.