[Python-checkins] distutils2: Support of prefer_final and prefer_source in pypi.simple

tarek.ziade python-checkins at python.org
Sun Jul 4 11:48:40 CEST 2010


tarek.ziade pushed 2dfbdecc2dc3 to distutils2:

http://hg.python.org/distutils2/rev/2dfbdecc2dc3
changeset:   335:2dfbdecc2dc3
user:        Alexis Metaireau <ametaireau at gmail.com>
date:        Thu Jul 01 19:58:18 2010 +0200
summary:     Support of prefer_final and prefer_source in pypi.simple
files:       src/distutils2/pypi/dist.py

diff --git a/src/distutils2/pypi/dist.py b/src/distutils2/pypi/dist.py
--- a/src/distutils2/pypi/dist.py
+++ b/src/distutils2/pypi/dist.py
@@ -232,6 +232,9 @@
         else:
             super(PyPIDistributions, self).append(o)
 
+    def sort(self, prefer_source=None, prefer_final=None, *args, **kwargs):
+        return super(PyPIDistributions, self).sort(*args, **kwargs)
+
 
 def split_archive_name(archive_name, probable_name=None):
     """Split an archive name into two parts: name and version.

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


More information about the Python-checkins mailing list