source: TI12-security/trunk/NDGSecurity/python/buildout/ndgsecurity/eggs/zc.buildout-1.2.1-py2.5.egg/zc/buildout/unzip.txt @ 7081

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/buildout/ndgsecurity/eggs/zc.buildout-1.2.1-py2.5.egg/zc/buildout/unzip.txt@7081
Revision 7081, 1.3 KB checked in by pjkersha, 11 years ago (diff)
  • Property svn:keywords set to Id
Line 
1Always unzipping eggs
2=====================
3
4By default, zc.buildout doesn't unzip zip-safe eggs.
5
6    >>> write('buildout.cfg',
7    ... '''
8    ... [buildout]
9    ... parts = eggs
10    ... find-links = %(link_server)s
11    ...
12    ... [eggs]
13    ... recipe = zc.recipe.egg
14    ... eggs = demo
15    ... ''' % globals())
16
17    >>> _ = system(buildout)
18    >>> ls('eggs')
19    -  demo-0.4c1-py2.4.egg
20    -  demoneeded-1.2c1-py2.4.egg
21    d  setuptools-0.6c8-py2.4.egg
22    -  zc.buildout.egg-link
23
24This follows the
25policy followed by setuptools itself.  Experience shows this policy
26to to be inconvenient.  Zipped eggs make debugging more difficult and
27often import more slowly.
28
29You can include an unzip option in the buildout section to change the
30default unzipping policy.
31
32    >>> write('buildout.cfg',
33    ... '''
34    ... [buildout]
35    ... parts = eggs
36    ... find-links = %(link_server)s
37    ... unzip = true
38    ...
39    ... [eggs]
40    ... recipe = zc.recipe.egg
41    ... eggs = demo
42    ... ''' % globals())
43
44
45    >>> import os
46    >>> for name in os.listdir('eggs'):
47    ...     if name.startswith('demo'):
48    ...         remove('eggs', name)
49
50    >>> _ = system(buildout)
51    >>> ls('eggs')
52    d  demo-0.4c1-py2.4.egg
53    d  demoneeded-1.2c1-py2.4.egg
54    d  setuptools-0.6c8-py2.4.egg
55    -  zc.buildout.egg-link
Note: See TracBrowser for help on using the repository browser.