[Checkins] SVN: Sandbox/thefunny42/kgs.test/trunk/ Get rid of the environment variables.

Christian Theune ct at gocept.com
Tue Jan 27 12:29:49 EST 2009


Log message for revision 95232:
  Get rid of the environment variables.
  

Changed:
  _U  Sandbox/thefunny42/kgs.test/trunk/
  U   Sandbox/thefunny42/kgs.test/trunk/README.txt
  U   Sandbox/thefunny42/kgs.test/trunk/buildout.cfg
  U   Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py

-=-

Property changes on: Sandbox/thefunny42/kgs.test/trunk
___________________________________________________________________
Added: svn:ignore
   + develop-eggs
bin
.installed.cfg
parts


Modified: Sandbox/thefunny42/kgs.test/trunk/README.txt
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/README.txt	2009-01-27 17:27:27 UTC (rev 95231)
+++ Sandbox/thefunny42/kgs.test/trunk/README.txt	2009-01-27 17:29:48 UTC (rev 95232)
@@ -20,10 +20,6 @@
 
 You can set those environment variable:
 
-- ``PYTHON_CACHE_EGG``: Where your cache egg is.
-
-- ``PYTHON_CACHE_DOWNLOAD``: Where your download directory is.
-
 - ``ZOPE3_SVN``: Url to the Zope SVN. By default it's
   ``svn://svn.zope.org/repos/main/``. You might want to change it to
   include your username, or use a mirror.

Modified: Sandbox/thefunny42/kgs.test/trunk/buildout.cfg
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/buildout.cfg	2009-01-27 17:27:27 UTC (rev 95231)
+++ Sandbox/thefunny42/kgs.test/trunk/buildout.cfg	2009-01-27 17:29:48 UTC (rev 95232)
@@ -1,7 +1,9 @@
 [buildout]
 parts = kgs_test
 develop = .
+download-cache = .
 
 [kgs_test]
 recipe = zc.recipe.egg
 eggs = kgs.test
+arguments = '${buildout:eggs-directory}', '${buildout:download-cache}'

Modified: Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py	2009-01-27 17:27:27 UTC (rev 95231)
+++ Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py	2009-01-27 17:29:48 UTC (rev 95232)
@@ -9,10 +9,6 @@
 # Configuration
 ZOPE3_SVN = os.getenv('ZOPE3_SVN',
                       'svn://svn.zope.org/repos/main/')
-EGG_CACHE = os.getenv('PYTHON_CACHE_EGG',
-                      'eggs')
-DOWNLOAD_CACHE = os.getenv('PYTHON_CACHE_DOWNLOAD',
-                      'download')
 DEVELOP_EGG = 'develop-eggs'
 BLACKLIST = ['zope.agxassociation', 'zope.app.css', 'zope.app.demo', \
                  'zope.app.fssync', 'zope.app.recorder', \
@@ -41,7 +37,7 @@
         return project + ' [test]'
     return project
 
-def main():
+def main(egg_cache, download_cache):
     """Create buildout.cfg for running test independently on a set of
     packages.
     """
@@ -101,10 +97,10 @@
         os.mkdir(DEVELOP_EGG)
 
     trunk_env = Environment([DEVELOP_EGG,])
-    kgs_env = Environment([EGG_CACHE,])
+    kgs_env = Environment([egg_cache,])
     kgs_ws = WorkingSet(kgs_env)
     easy_install.prefer_final(False)
-    easy_install.download_cache(DOWNLOAD_CACHE)
+    easy_install.download_cache(download_cache)
 
     for project in projects:
         if not os.path.isdir(project):
@@ -113,10 +109,10 @@
         script_name = project.replace('.', '-')
 
         # Released version
-        kgs_env = Environment([EGG_CACHE,])
+        kgs_env = Environment([egg_cache,])
         kgs_ws = WorkingSet(kgs_env)
         easy_install.install([project],
-                             os.path.abspath(EGG_CACHE),
+                             os.path.abspath(egg_cache),
                              working_set=kgs_ws, newest=True)
         packages = kgs_env[project]
 



More information about the Checkins mailing list