Skip to content

Commit 89b8bb2

Browse files
committed
Merge pull request #2238 from dstufft/document-bundle-alternative
Document an alternative to pip bundle
2 parents 3203d1d + 5f5ebe8 commit 89b8bb2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/user_guide.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,3 +557,23 @@ Three things are required to fully guarantee a repeatable installation using req
557557

558558

559559
.. _PyPI: http://pypi.python.org/pypi/
560+
561+
562+
.. _`Installation Bundle`:
563+
564+
Create an Installation Bundle with Compiled Dependencies
565+
********************************************************
566+
567+
You can create a simple bundle that contains all of the dependencies you wish
568+
to install using::
569+
570+
$ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
571+
$ pip wheel -r requirements.txt --wheel-dir=$tempdir
572+
$ cwd=`pwd`
573+
$ (cd "$tempdir"; tar -cjvf "$cwd/bundled.tar.bz2" *)
574+
575+
Once you have a bundle, you can then uninstall it using::
576+
577+
$ tempdir=$(mktemp -d /tmp/wheelhouse-XXXXX)
578+
$ (cd $tempdir; tar -xvf /path/to/bundled.tar.bz2)
579+
$ pip install --force-reinstall --ignore-installed --upgrade --no-index --use-wheel --no-deps $tempdir/*

0 commit comments

Comments
 (0)