Skip to main content

install all exe dependencies files in a directory - for pyinstaller

Project description

deps_installer

Python

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 data folder 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.listdir will raise if the folder does not exist. Create data/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 pyuac usage in src/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deps_installer-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deps_installer-1.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for deps_installer-1.0.2.tar.gz
Algorithm Hash digest
SHA256 13e15529bf8a35fcefc5f9ae77eba40ce6895054d3f03653d87cb8352f09af91
MD5 517db79d6eaee313b00692b2541ee014
BLAKE2b-256 069872dcb1c6e4ad834fd552390fb15402b76e10ab3b5244c6cffb705727abdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for deps_installer-1.0.2.tar.gz:

Publisher: build.yaml on Jair-F/deps_installer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for deps_installer-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7531e1e024f59a15d9cbe3f16df8e59ba997cb86684c9ffdf4d0191bc9d79c9
MD5 4fa27338dfc5dfc968315bf8e885033a
BLAKE2b-256 9277411ba404ad59a7c8672941c25113006bd43a15a9aac6188a84feb532a0ba

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page