[Python-checkins] peps: pep-0426: remove extras from Setup-Requires-Dist

daniel.holth python-checkins at python.org
Tue Feb 12 04:50:10 CET 2013


http://hg.python.org/peps/rev/bdf21b565b3a
changeset:   4733:bdf21b565b3a
parent:      4728:e85481d9e6ef
user:        Daniel Holth <dholth at fastmail.fm>
date:        Mon Feb 11 22:37:10 2013 -0500
summary:
  pep-0426: remove extras from Setup-Requires-Dist

Today Setup-Requires-Dist is needed so that "python setup.py" will run at all.
Pip executes setup.py to write the requirements to a file, installs them, and
runs setup.py again to do the build/install. Not prepared to add extras to
this stage as installing a package with extras would have different results
depending on whether you were installing package[extra] from source or from a
binary.

files:
  pep-0426.txt |  18 ++++++------------
  1 files changed, 6 insertions(+), 12 deletions(-)


diff --git a/pep-0426.txt b/pep-0426.txt
--- a/pep-0426.txt
+++ b/pep-0426.txt
@@ -392,9 +392,6 @@
 compiler support or a package needed to generate a manifest from
 version control.
 
-Distributions may also depend on optional features of other distributions.
-See `Optional Features`_ for details.
-
 Examples::
 
     Setup-Requires-Dist: custom_setup_command
@@ -1086,8 +1083,7 @@
 
 Distributions may use the ``Provides-Extra`` field to declare additional
 features that they provide. Environment markers may then be used to indicate
-that particular dependencies (as specified in ``Requires-Dist`` or
-``Setup-Requires-Dist``) are needed only when a particular optional
+that particular dependencies are needed only when a particular optional
 feature has been requested.
 
 Other distributions then require an optional feature by placing it
@@ -1095,10 +1091,9 @@
 dependency. Multiple features can be requisted by separating them with a
 comma within the brackets.
 
-The full set of dependency requirements is then the union of the
-sets created by first evaluating the `Requires-Dist` (or
-`Setup-Requires-Dist`) fields with `extra` set to `None` and then to
-the name of each requested feature.
+The full set of dependency requirements is then the union of the sets
+created by first evaluating the `Requires-Dist` fields with `extra`
+set to `None` and then to the name of each requested feature.
 
 Example::
 
@@ -1159,9 +1154,8 @@
 * Optional feature mechanism
 
    * the new ``Provides-Extra`` field
-   * ``extra`` expression defined for environment markers.
-   * optional feature support in ``Requires-Dist`` and
-     ``Setup-Requires-Dist``
+   * ``extra`` expression defined for environment markers
+   * optional feature support in ``Requires-Dist``
 
 * Metadata extension mechanism
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list