aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lannigan <p.lannigan@gmail.com>2017-01-02 21:21:01 -0500
committerPatrick Lannigan <p.lannigan@gmail.com>2017-01-02 21:21:01 -0500
commit37a48e9a7a5ae5ac770b05b8f1ff52bdceda3cae (patch)
tree1cc5a1f920a0264467671d2bdfe6c3450a35fe35
parent78339bc0d77649f47be496879e4a5f768657d229 (diff)
downloadexternal_python_setuptools-37a48e9a7a5ae5ac770b05b8f1ff52bdceda3cae.tar.gz
external_python_setuptools-37a48e9a7a5ae5ac770b05b8f1ff52bdceda3cae.tar.bz2
external_python_setuptools-37a48e9a7a5ae5ac770b05b8f1ff52bdceda3cae.zip
Document use of install_requires with corrected PEP
PEP 496 is a draft that was never accepted, so it does not have the correct information.
-rw-r--r--docs/setuptools.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt
index 5dd30b13..601628b4 100644
--- a/docs/setuptools.txt
+++ b/docs/setuptools.txt
@@ -787,21 +787,21 @@ For example, here is a project that uses the ``enum`` module and ``pywin32``::
setup(
name="Project",
...
- extras_require={
- ':python_version < "3.4"': ["enum34"],
- ':sys_platform == "win32"': ["pywin32 >= 1.0"]
- }
+ install_requires=[
+ 'enum34;python_version<"3.4"',
+ 'pywin32 >= 1.0;platform_system=="Windows"'
+ ]
)
-Since the ``enum`` module was added in python 3.4, it should only be installed
+Since the ``enum`` module was added in Python 3.4, it should only be installed
if the python version is earlier. Since ``pywin32`` will only be used on
windows, it should only be installed when the operating system is Windows.
Specifying version requirements for the dependencies is supported as normal.
The environmental markers that may be used for testing platform types are
-detailed in `PEP 496`_.
+detailed in `PEP 508`_.
-.. _PEP 496: https://www.python.org/dev/peps/pep-0496/
+.. _PEP 508: https://www.python.org/dev/peps/pep-0508/
Including Data Files
====================