install_extras¶
-
ExtrasCommand.
install_extras
()[source]¶ Installs extras requirements using
python -m pip install -U -r requirements.txt
The python executable is determined using
sys.executable
, and the requirements.txt file is generated into a temporary file which is deleted after the install is finished.If the argument
--extra
/-e
(extra
) is passed, then this will install only the requirements for that extra.Example (assuming this class is registered as
extras
)# Install ALL extras requirements ./setup.py extras --install # Install only the requirements for the extra 'cache' ./setup.py extras --install --extra=cache # Shorthand version (YMMV based on setuptools/distutils version) ./setup.py extras -i -e cache