Distribute ARchived PYthon
Distribute Archived Python
pip install darpy
darpy isn’t better than shell scripting. It is shell scripting. No illusions, no lies, no false abstractions.
- Pre-baking a virtualenv and shipping it around is full of woes. (e.g. -relocatable only kind of works, but virtualenv may have abspaths in it)
- Want to be able to bundle dependencies of an application so that you can have them openly specified in requirements.txt, but reproducibly deploy the same exact dependencies
Use tar, pip download, pip install, to make python archives which can unpack and install without network access.
Works best if you darpy pack and darpy unpack on the same platform version, python version, and architecture. darpy pack may fetch arch or platform-specific binary packages based on the platform where it runs.
Pack it Up
If you have a package in dir $HOME/myproject
darpy pack --src "$HOME/myproject"
If you want to use a requirements.txt outside of setup.py
darpy pack --requirements "$HOME/myproject/requirements.txt"
or use both
darpy pack --src "$HOME/myproject" --requirements "$HOME/myproject/requirements.txt"
Works best if done on the same platform
Unpack into current virtualenv with
darpy unpack darpy-pack.tgz
Unpack into target virtualenv with
darpy unpack darpy-pack.tgz --virtualenv "$HOME/myvirtualenv"
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|darpy-0.2.1-py2.7.egg (8.4 kB) Copy SHA256 hash SHA256||Egg||2.7||Nov 3, 2017|
|darpy-0.2.1.tar.gz (3.3 kB) Copy SHA256 hash SHA256||Source||None||Nov 3, 2017|