[Checkins] SVN: zc.buildout/branches/env-cache/src/zc/buildout/easy_install.py Have to clear cached envs to most faithfully reproduce existing behavior.

Ross Patterson me at rpatterson.net
Sat Jan 21 12:28:19 UTC 2012


Log message for revision 124123:
  Have to clear cached envs to most faithfully reproduce existing behavior.
  
  For example, when doing a develop egg and subsequently using it,
  buildout will still have to "get" the dist and find it as an egg
  link.  If the env is magically updated when the egg is developed, then
  it no longer has to "get" the dist since it knows it has it.  This
  fixed the last of the test failures.

Changed:
  U   zc.buildout/branches/env-cache/src/zc/buildout/easy_install.py

-=-
Modified: zc.buildout/branches/env-cache/src/zc/buildout/easy_install.py
===================================================================
--- zc.buildout/branches/env-cache/src/zc/buildout/easy_install.py	2012-01-21 12:00:18 UTC (rev 124122)
+++ zc.buildout/branches/env-cache/src/zc/buildout/easy_install.py	2012-01-21 12:28:18 UTC (rev 124123)
@@ -246,12 +246,12 @@
     return env_copy
 
 
-def _update_envs(executable, dest=None):
+def _update_envs(executable, dest):
     python = _get_version(executable)
     for key in _envs.keys():
         cached_python, cached_path = key
         if cached_python == python and dest in cached_path:
-            _envs[key].scan([dest])
+            del _envs[key]
             
 
 def clear_index_cache():



More information about the checkins mailing list