This module provides tools for installing Python packages using the easy_install command provided by distribute.
See also
Check if distribute is installed.
Install the latest version of distribute.
from fabtools.python_distribute import *
if not is_distribute_installed():
install_distribute()
Install Python packages with easy_install.
Examples:
import fabtools
# Install a single package
fabtools.python_distribute.install('package', use_sudo=True)
# Install a list of packages
fabtools.python_distribute.install(['pkg1', 'pkg2'], use_sudo=True)