]> granicus.if.org Git - python/commitdiff
Issue #23682: Delete Python 2.2 mention from distutils documentation.
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)
Patch by Thomas Kluyver.

Doc/distutils/setupscript.rst

index 3edcf878c7cda85bb1e870128696b0ae557efa04..914a34f1c891f9a944c55c835a61132c6dec9362 100644 (file)
@@ -671,20 +671,6 @@ information is sometimes used to indicate sub-releases.  These are
               ],
           )
 
-If you wish to include classifiers in your :file:`setup.py` file and also wish
-to remain backwards-compatible with Python releases prior to 2.2.3, then you can
-include the following code fragment in your :file:`setup.py` before the
-:func:`setup` call. ::
-
-    # patch distutils if it can't cope with the "classifiers" or
-    # "download_url" keywords
-    from sys import version
-    if version < '2.2.3':
-        from distutils.dist import DistributionMetadata
-        DistributionMetadata.classifiers = None
-        DistributionMetadata.download_url = None
-
-
 .. _debug-setup-script:
 
 Debugging the setup script