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
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
tiamat-pip-1.0.0.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file tiamat-pip-1.0.0.tar.gz
.
File metadata
- Download URL: tiamat-pip-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3921c6e7821e81d77ddbfdf08a0748c4f85d66cb3d5f5db8db959576a6101f64 |
|
MD5 | 4d0d807fb1a6d14e05ae05ce2d51dd7d |
|
BLAKE2b-256 | 09267e1ec9fea0c18bce29bb9747fb3423571ed6ae1c2fb886b711e5fb3e522d |
File details
Details for the file tiamat_pip-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: tiamat_pip-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869bea02a0ea963ca5439358a1179f81736f2dc0efd91b6a38ce0e3fa0d526c5 |
|
MD5 | 154a1c3d66c259d0f4cfbafb3ebcee17 |
|
BLAKE2b-256 | 1d466a7cb33a4770cde45c785c425c0fec6f6b331edacda127ce47b8d90c6d3d |