/pyckage

Tool for packaging python scripts

Primary LanguageShell

Pyckage

Tool for packaging python scripts.

Packaging works by zipping entire project, and creating a new file that can execute the collected contents of the zip file. This requires the entry file to be named __main__.py.

Dependencies

Downloads all dependencies from requirements.txt, and places them in .pyckage. Then creates top-level symlinks for all modules, so they can be imported.

Installation

chmod 755 pyckage.py
ln -s "pyckage.py" /place/on/path

Use

cd $PYCKAGEHOME/test
pyckage
cd build
./main

To do

  • Upgrade dependencies with -u flag.

Acknowledgements

Inspired by chadmill3r