Skip to content

Commit

Permalink
Fleshed out pip.
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteinge committed Feb 11, 2010
1 parent d0ca99d commit edc2120
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions upyug_2010-02-11_packaging-deployment/presentation.rst
Expand Up @@ -79,7 +79,7 @@ Packaging
easy_install "SomePackage==2.0" easy_install "SomePackage==2.0"
easy_install "SomePackage>2.0" easy_install "SomePackage>2.0"
easy_install --upgrade SomePackage easy_install --upgrade SomePackage
easy_install http://example.com/downloads/ExamplePackage-2.0-py2.4.egg easy_install http://example.com/ExamplePackage-2.0-py2.4.egg


`Distribute`_ `Distribute`_
------------- -------------
Expand Down Expand Up @@ -126,18 +126,41 @@ Deployment
`pip`_ `pip`_
------ ------


:: .. r2b_note::


pip install -E someproject -r /path/to/requirements.txt * Packages don’t have to be installed as egg archives, they can be
installed flat (while keeping the egg metadata).
* Uninstallation of packages.
* Native support for other VCSes (Git, Mercurial and Bazaar).
* Define fixed sets of requirements.
* Freeze current setup as repeatable requirements.

* ``pip install somemodule``
* ``pip uninstall somemodule``
* ``pip install -E someproject -r /path/to/requirements.txt``
* ``pip freeze > requirements.txt``
* ``pip bundle MyBundle.pybundle -r /path/to/requirements.txt``
* ``pip install -E someproject MyBundle.pybundle``


`Fabric`_ `Fabric`_
--------- ---------


:: .. r2b_note::

Execution model:

* A list of tasks is created. Currently this list is simply the arguments
given to fab, preserving the order given.
* For each task, a task-specific host list is generated from various
sources (see How host lists are constructed below for details.)
* The task list is walked through in order, and each task is run once per
host in its host list.
* Tasks with no hosts in their host list are considered local-only, and
will always run once and only once.


fab --list * ``fab --list``
fab --detail somecommand * ``fab --detail somecommand``
fab somecommand othercommand * ``fab somecommand othercommand``


`buildout`_ `buildout`_
----------- -----------
Expand Down

0 comments on commit edc2120

Please sign in to comment.