May 2018
Intermediate to advanced
380 pages
9h 37m
English
To create an archive (from the official documentation: https://pip.pypa.io/en/latest/user_guide/#installation-bundles), perform the following:
$ tempdir = $(mktemp -d /tmp/archive_dir)
$ pip wheel -r requirements.txt --wheel-dir = $tempdir
$ cwd = `pwd`
$ (cd "$tempdir"; tar -cjvf "$cwd/<archive>.tar.bz2" *)
To install from an archive, do the following:
$ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
$ (cd $tempdir; tar -xvf /path/to/<archive>.tar.bz2)