[Checkins] SVN: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/ Remove tmp dir after succesful buildout
Jasper Spaans
jspaans at thehealthagency.com
Mon Dec 8 15:51:02 EST 2008
Log message for revision 93796:
Remove tmp dir after succesful buildout
Changed:
U zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/README.txt
U zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/__init__.py
U zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/downloadcache.txt
U zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/misc.txt
U zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/patching.txt
-=-
Modified: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/README.txt
===================================================================
--- zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/README.txt 2008-12-08 20:50:12 UTC (rev 93795)
+++ zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/README.txt 2008-12-08 20:51:02 UTC (rev 93796)
@@ -30,6 +30,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
The recipe also creates the parts directory:
@@ -65,6 +66,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
The recipe sets the location option, which can be read by other
recipes, to the location where the part is installed:
@@ -109,6 +111,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
Sometimes it's necessary to patch the sources before building a package.
You can specify the name of the patch to apply and (optional) patch options:
@@ -166,6 +169,7 @@
building foo patched
echo installing foo patched
installing foo patched
+ foo: removing temporary directory
It is possible to autogenerate the configure files:
@@ -191,3 +195,4 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
Modified: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/__init__.py
===================================================================
--- zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/__init__.py 2008-12-08 20:50:12 UTC (rev 93795)
+++ zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/__init__.py 2008-12-08 20:51:02 UTC (rev 93796)
@@ -114,6 +114,8 @@
system("make install")
finally:
os.chdir(here)
+ logger.info('removing temporary directory')
+ shutil.rmtree(tmp)
except:
shutil.rmtree(dest)
raise
Modified: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/downloadcache.txt
===================================================================
--- zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/downloadcache.txt 2008-12-08 20:50:12 UTC (rev 93795)
+++ zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/downloadcache.txt 2008-12-08 20:51:02 UTC (rev 93796)
@@ -51,6 +51,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
<BLANKLINE>
We'll also get the download cache populated. The buildout doesn't put
@@ -96,6 +97,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
<BLANKLINE>
This is because the ones in the download cache are used.
@@ -122,6 +124,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
<BLANKLINE>
If the cache location is changed, and the installed parts are removed,
@@ -156,6 +159,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
<BLANKLINE>
The old cache is left in place:
@@ -207,6 +211,7 @@
building foo
echo installing foo
installing foo
+ foo: removing temporary directory
<BLANKLINE>
However, in offline mode, if we remove the installed parts and clear
Modified: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/misc.txt
===================================================================
--- zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/misc.txt 2008-12-08 20:50:12 UTC (rev 93795)
+++ zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/misc.txt 2008-12-08 20:51:02 UTC (rev 93796)
@@ -31,6 +31,7 @@
Installing...
...
installing foo
+ foo: removing temporary directory
<BLANKLINE>
>>> ls(join(sample_buildout, 'parts'))
Modified: zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/patching.txt
===================================================================
--- zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/patching.txt 2008-12-08 20:50:12 UTC (rev 93795)
+++ zc.recipe.cmmi/branches/js-remove-tmp/zc/recipe/cmmi/patching.txt 2008-12-08 20:51:02 UTC (rev 93796)
@@ -71,6 +71,7 @@
building foo patched
echo installing foo patched
installing foo patched
+ foo: removing temporary directory
Any downloaded patch files can be cached in a download cache if available, in
exactly the same way as for tarballs. Similarly, if the build is set to offline
More information about the Checkins
mailing list