Skip to main content

zc.buildout recipe for pip

Project description

This package is a zc.buildout recipe which allow to install python packages using pip

Detailed Documentation

Supported options

The recipe supports the following options:

venv

Virtualenv id. The virtualenv is build in parts/venv (Default to pip)

indexes

Extra indexes url.

install

A list of string passed to pip directly. A sub process is run per line. This allow to use –install-option.

editables

A list of svn url. (svn+http://myrepo/svn/MyApp#egg=MyApp)

This recipe is based on zc.recipe.egg#scripts so options used by this recipe should also works.

Example usage

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = test1
...
... [test1]
... recipe = gp.recipe.pip
... eggs = PasteScript
... interpreter = python
... scripts =
...     paster = paster
... """)

Running the buildout gives us:

>>> print 'start', system(buildout)
start...
Installing test1.
Creating new virtualenv environment ...
...
Successfully installed PasteScript
...
Generated script '/sample-buildout/bin/paster'.
Generated interpreter '/sample-buildout/bin/python'.
<BLANKLINE>

Scripts are generated:

>>> ls('bin')
-  buildout
-  paster
-  python

Here is a config file used to install Deliverance:

[buildout]
parts = deliverance
download-cache = download

[deliverance]
recipe = gp.recipe.pip
install =
    Cython
    --install-option=--static-deps lxml==2.2alpha1
    http://deliverance.openplans.org/dist/Deliverance-snapshot-latest.pybundle

Contributors

Gael Pasgrimaud

Change history

0.1 (2008-12-7)

  • Initial release [Gael Pasgrimaud].

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gp.recipe.pip-0.1.tar.gz (151.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page