提交 6d363148 编写于 作者: C Carl Meyer

Merge pull request #424 from poswald/patch-1

Adding documentation about the `extras_require` option
......@@ -98,9 +98,20 @@ installed. For example::
MyPackage==3.0
tells pip to install the 3.0 version of MyPackage.
tells pip to install the 3.0 version of MyPackage.
You can also install a package in an "editable" form. This puts the
Some packages my specify optionally installable components. For example,
a python library may provide additional functionality that requires you
to you have Reportlab installed but may not want to have it installed by
default for everyone. These options are specifed by a ``extras_require`` setting
in the project's ``setup.py`` file. You may select for it by specifying::
MyPackage==3.0 [PDF]
This will install any additional requirements specified by the package as
needed to support PDF generation.
Packages may also be installed in an "editable" form. This puts the
source code into ``src/distname`` (making the name lower case) and
runs ``python setup.py develop`` on the package. To indicate
editable, use ``-e``, like::
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册