[Checkins] SVN: zc.buildout/trunk/ Changed the default index to http://cheeseshop.python.org/simple.

Jim Fulton jim at zope.com
Mon Aug 20 13:58:07 EDT 2007


Log message for revision 79041:
  Changed the default index to http://cheeseshop.python.org/simple.
  

Changed:
  U   zc.buildout/trunk/CHANGES.txt
  U   zc.buildout/trunk/src/zc/buildout/easy_install.py

-=-
Modified: zc.buildout/trunk/CHANGES.txt
===================================================================
--- zc.buildout/trunk/CHANGES.txt	2007-08-20 17:39:07 UTC (rev 79040)
+++ zc.buildout/trunk/CHANGES.txt	2007-08-20 17:58:07 UTC (rev 79041)
@@ -31,6 +31,14 @@
   To prefer newer versions, regardless of whether or not they are
   final, buildout-wide.
 
+- The new simple Python index, http://cheeseshop.python.org/simple, is
+  used as the default index.  This will provide better performance
+  than the human package index interface,
+  http://pypi.python.org/pypi. More importantly, it lists hidden
+  distributions, so buildouts with fixed distribution versions will be
+  able to find old distributions even if the distributions have been
+  hidden in the human PyPI interface.
+
 Bugs Fixed
 ----------
 

Modified: zc.buildout/trunk/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/easy_install.py	2007-08-20 17:39:07 UTC (rev 79040)
+++ zc.buildout/trunk/src/zc/buildout/easy_install.py	2007-08-20 17:58:07 UTC (rev 79041)
@@ -36,7 +36,10 @@
 except AttributeError:
     pass
 
-default_index_url = os.environ.get('buildout-testing-index-url')
+default_index_url = os.environ.get(
+    'buildout-testing-index-url',
+    'http://cheeseshop.python.org/simple',
+    )
 
 logger = logging.getLogger('zc.buildout.easy_install')
 
@@ -82,14 +85,9 @@
     if index_url is None:
         index_url = default_index_url
 
-    if index_url is None:
-        index = setuptools.package_index.PackageIndex(
-            python=_get_version(executable)
-            )
-    else:
-        index = setuptools.package_index.PackageIndex(
-            index_url, python=_get_version(executable)
-            )
+    index = setuptools.package_index.PackageIndex(
+        index_url, python=_get_version(executable)
+        )
         
     if find_links:
         index.add_find_links(find_links)



More information about the Checkins mailing list