[Python-checkins] python/nondist/sandbox/setuptools/setuptools package_index.py, 1.11, 1.12

pje@users.sourceforge.net pje at users.sourceforge.net
Sun Jul 17 06:42:43 CEST 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16754/setuptools

Modified Files:
	package_index.py 
Log Message:
Renamings for consistent terminology; distributions and requirements now
both have 'project_name' attributes, instead of one having 'name' and the
other 'distname'.  Requirements no longer have 'options', they have
'extras'.  This is the beginning of the terminology/architecture 
refactoring described at:

http://mail.python.org/pipermail/distutils-sig/2005-June/004652.html



Index: package_index.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/package_index.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- package_index.py	12 Jul 2005 05:31:36 -0000	1.11
+++ package_index.py	17 Jul 2005 04:42:41 -0000	1.12
@@ -245,12 +245,12 @@
 
 
     def find_packages(self, requirement):
-        self.scan_url(self.index_url + requirement.distname+'/')
+        self.scan_url(self.index_url + requirement.project_name+'/')
         if not self.package_pages.get(requirement.key):
             # We couldn't find the target package, so search the index page too
             self.warn(
                 "Couldn't find index page for %r (maybe misspelled?)",
-                requirement.distname
+                requirement.project_name
             )
             if self.index_url not in self.fetched_urls:
                 self.warn(



More information about the Python-checkins mailing list