fabtools.python_setuptools

Python packages

This module provides tools for installing Python packages using the easy_install command provided by setuptools.

fabtools.python_setuptools.package_version(name, python_cmd='python')[source]

Get the installed version of a package

Returns None if it can’t be found.

fabtools.python_setuptools.is_setuptools_installed(python_cmd='python')[source]

Check if setuptools is installed.

fabtools.python_setuptools.install_setuptools(python_cmd='python', use_sudo=True)[source]

Install the latest version of setuptools.

import fabtools

fabtools.python_setuptools.install_setuptools()
fabtools.python_setuptools.install(packages, upgrade=False, use_sudo=False, python_cmd='python')[source]

Install Python packages with easy_install.

Examples:

import fabtools

# Install a single package
fabtools.python_setuptools.install('package', use_sudo=True)

# Install a list of packages
fabtools.python_setuptools.install(['pkg1', 'pkg2'], use_sudo=True)

Note

most of the time, you’ll want to use fabtools.python.install() instead, which uses pip to install packages.

Read the Docs v: 0.17.0
Versions
latest
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.