install all exe dependencies files in a directory - for pyinstaller
Project description
deps_installer
Lightweight helper to bundle and run small installer scripts included with a
Python application (Windows only). The package looks for an installers
folder (default: data/installers) in the packaged resources and executes
each file found there.
Quick highlights:
- Programmatic:
install_deps(installer_folder='data/installers') - Platform: Windows only
Quick Start
Programmatic call:
from deps_installer import install_deps
install_deps() # uses 'data/installers' by default
Example CLI (sample included):
python src/example_use.py --install_deps
Usage
- Function:
install_deps(installer_folder='data/installers'). - On non-Windows platforms the function prints a message and returns without running installers.
Notes:
- The function executes every file found in the provided folder using
subprocess.Popen. Ensure files are executable and trusted. - If you bundle with PyInstaller, include the
datafolder so installer files are available at runtime (see Packaging below).
Packaging (PyInstaller)
Embed the data folder so installer files are available at runtime. Example:
pyinstaller -F --clean --distpath dist ; \
--add-binary data:data ; \
--runtime-tmpdir tmp ; \
--name installer_try src/example_use.py
This places your data contents inside the executable runtime so
install_deps() can find data/installers.
Troubleshooting & Notes
- Missing folder:
os.listdirwill raise if the folder does not exist. Createdata/installers(or pass a different folder) before packaging. - Interactive installers: test installers manually—automated installs should avoid blocking prompts.
- Admin rights: if installers require elevation, re-launch your app as admin
(see
pyuacusage insrc/example_use.py).
Security
This project executes files shipped with the package. Only include files from trusted sources. For production use consider:
- restricting executable extensions (e.g.
.exe,.msi,.bat) - validating file hashes or signatures before execution
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deps_installer-1.0.2.tar.gz.
File metadata
- Download URL: deps_installer-1.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13e15529bf8a35fcefc5f9ae77eba40ce6895054d3f03653d87cb8352f09af91
|
|
| MD5 |
517db79d6eaee313b00692b2541ee014
|
|
| BLAKE2b-256 |
069872dcb1c6e4ad834fd552390fb15402b76e10ab3b5244c6cffb705727abdd
|
Provenance
The following attestation bundles were made for deps_installer-1.0.2.tar.gz:
Publisher:
build.yaml on Jair-F/deps_installer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deps_installer-1.0.2.tar.gz -
Subject digest:
13e15529bf8a35fcefc5f9ae77eba40ce6895054d3f03653d87cb8352f09af91 - Sigstore transparency entry: 715256374
- Sigstore integration time:
-
Permalink:
Jair-F/deps_installer@61653d2b8e724c66901cc5cb01096819ca0ae090 -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/Jair-F
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@61653d2b8e724c66901cc5cb01096819ca0ae090 -
Trigger Event:
push
-
Statement type:
File details
Details for the file deps_installer-1.0.2-py3-none-any.whl.
File metadata
- Download URL: deps_installer-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7531e1e024f59a15d9cbe3f16df8e59ba997cb86684c9ffdf4d0191bc9d79c9
|
|
| MD5 |
4fa27338dfc5dfc968315bf8e885033a
|
|
| BLAKE2b-256 |
9277411ba404ad59a7c8672941c25113006bd43a15a9aac6188a84feb532a0ba
|
Provenance
The following attestation bundles were made for deps_installer-1.0.2-py3-none-any.whl:
Publisher:
build.yaml on Jair-F/deps_installer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deps_installer-1.0.2-py3-none-any.whl -
Subject digest:
d7531e1e024f59a15d9cbe3f16df8e59ba997cb86684c9ffdf4d0191bc9d79c9 - Sigstore transparency entry: 715256379
- Sigstore integration time:
-
Permalink:
Jair-F/deps_installer@61653d2b8e724c66901cc5cb01096819ca0ae090 -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/Jair-F
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yaml@61653d2b8e724c66901cc5cb01096819ca0ae090 -
Trigger Event:
push
-
Statement type: