Skip to content

Commit 444f9c4

Browse files
committed
Merge pull request pypa#121 from derwolfe/extras-require-docs
install optional dependency example
2 parents f676eb1 + aaaabcd commit 444f9c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/installing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ default, pip only finds stable versions.
210210

211211
pip install --pre SomeProject
212212

213+
Install a package with `setuptools extras`_.
214+
::
215+
216+
$ pip install SomePackage[PDF]
217+
$ pip install SomePackage[PDF]==3.0
218+
$ pip install -e .[PDF]==3.0 # editable project in current directory
213219

214220
Wheels
215221
------
@@ -283,3 +289,4 @@ from the pip docs.
283289
:ref:`virtualenv`.
284290
285291
.. _pyvenv: http://docs.python.org/3.4/library/venv.html
292+
.. _setuptools extras: http://packages.python.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies

0 commit comments

Comments
 (0)