Packages Module

Deals with pip requirements. (Initial installing, refreshing, etc)

Packages Module Settings

PACKAGES_PIP_REQUIREMENTS_PATH = "pip_requires.txt" #The path to pip_requires file ON THE LOCAL Machine, relative to this settings.py file.
modules.packages.bootstrap(deploy_level='staging')[source]

Performs initial install of virtualenv, then installs listed pip packages specified in settings file

modules.packages.deploy(deploy_level='staging')[source]

Installs all packages listed in the pip packages list file(s) specified in settings.

modules.packages.install_packages()[source]

Install packages, given a list of package names

modules.packages.setup_virtualenv()[source]

Initially creates the virtualenv in the correct places (creating directory structures as necessary) on the remote host. If necessary, installs setup_tools, then pip, then virtualenv (packages)

modules.packages.start()[source]

Does nothing in this module

modules.packages.stop()[source]

Does nothing in this module

modules.packages.upload_pip_requires()[source]

Uploads the pip requirements file to the host machine and sets the relevant env variables

Table Of Contents

Previous topic

OS Module

Next topic

Supervisor Module

This Page