Skip to main content

Pip handling for tiamat projects

Project description

Tiamat Pip

Pip handling for tiamat projects

Setup

In order to be able to pip install packages which can be used with your tiamat packaged application you need to add tiamat-pip as a dependency and your run.py should look similar to:

#!/usr/bin/env python3

import sys
import multiprocessing

import tiamatpip.cli
import tiamatpip.configure

import mainapp

# Configure the path where to install the new packages
tiamatpip.configure.set_user_site_packages_path("THIS SHOULD BE A HARDCODED PATH")


def main(argv):
    # Let's see if we should be handling pip related stuff
    if tiamatpip.cli.should_redirect_argv(argv):
        tiamatpip.cli.process_pip_argv(argv)

    # If we reached this far, it means we're not handling pip stuff
    # Your application logic can resume

    mainapp.main(argv)
    sys.exit(0)


if __name__ == "__main__":
    if sys.platform.startswith("win"):
        multiprocessing.freeze_support()
    main(sys.argv)

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

tiamat-pip-1.4.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

tiamat_pip-1.4.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file tiamat-pip-1.4.0.tar.gz.

File metadata

  • Download URL: tiamat-pip-1.4.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for tiamat-pip-1.4.0.tar.gz
Algorithm Hash digest
SHA256 3cffba993c1506cb67ef8e88053aff46a956ba1667073017ad6005e5d34f6da3
MD5 175c49a2645d579542c7c436eed7f556
BLAKE2b-256 863589f1add10174f7deb44c1e16d0cadf99daa5d71823c07d3f45f08c05f915

See more details on using hashes here.

File details

Details for the file tiamat_pip-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: tiamat_pip-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for tiamat_pip-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e30df18a2a46c8d8c510f02e8531c6b34f0949618fa77987e3105b9284f9af
MD5 79046a51156124f5cd12349a8151eff9
BLAKE2b-256 4350e8426da212ca4a70c9b3ecd5ed34228c4004be33d689ecfc473fb5951271

See more details on using hashes here.

Supported by

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