Using the Setuptools Command

This library extends the setuptools utility by defining a single new command called requirements. This command installs your package’s dependencies identified by the setup_requires keyword passed to setuptools.setup() without installing the project in development mode.

$ virtualenv -q env
$ env/bin/python requirements

The requirements command supports a number of command line options that are passed through to the underlying pip install execution.

--index-url URL

Use URL as the Python Package Index instead of the default (

Fetch additional packages by extracting the links from URL. If URL refers to a directory (via a file:// URL), then the contents of the directory are used.


Do not find or prefer wheel archives when searching indexes and find-links locations.


Include pre-release and development versions. By default, only stable versions are installed.


Install dependencies listed in the tests_require keyword passed to setuptools.setup().

--install-extra-requirements EXTRA

Install the extras_require dependencies associated with EXTRA.

Since the requirements command uses pip to perform the installation, you can use any of the pip configuration files.