Commit 10aa57a7 authored by jim's avatar jim

Test/demo that the part name is used if a distribution isn't

specified.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@68555 62d5b8a3-27da-0310-9561-8e5933582275
parent 99819696
...@@ -9,6 +9,8 @@ distribution ...@@ -9,6 +9,8 @@ distribution
This is a requirement as defined by setuptools. This is a requirement as defined by setuptools.
If not specified, the distribution defaults to the part name.
find_links find_links
A list of URLs, files, or directories to search for distributions. A list of URLs, files, or directories to search for distributions.
...@@ -101,7 +103,6 @@ specification. For example, if we remove the restriction on demo: ...@@ -101,7 +103,6 @@ specification. For example, if we remove the restriction on demo:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... """ % sample_eggs) ... """ % sample_eggs)
...@@ -117,6 +118,9 @@ Then we'll get a new demo egg: ...@@ -117,6 +118,9 @@ Then we'll get a new demo egg:
- demoneeded-1.0-py2.3.egg - demoneeded-1.0-py2.3.egg
- zc.recipe.egg.egg-link - zc.recipe.egg.egg-link
Note that we removed the distribution option, and the distribution
defaulted to the part name.
The script is updated too: The script is updated too:
>>> print system(os.path.join(sample_buildout, 'bin', 'demo')), >>> print system(os.path.join(sample_buildout, 'bin', 'demo')),
...@@ -134,7 +138,6 @@ arguments: ...@@ -134,7 +138,6 @@ arguments:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... scripts = ... scripts =
... """ % sample_eggs) ... """ % sample_eggs)
...@@ -155,7 +158,6 @@ You can also control the name used for scripts: ...@@ -155,7 +158,6 @@ You can also control the name used for scripts:
... ...
... [demo] ... [demo]
... recipe = zc.recipe.egg ... recipe = zc.recipe.egg
... distribution = demo
... find_links = %s ... find_links = %s
... scripts = demo=foo ... scripts = demo=foo
... """ % sample_eggs) ... """ % sample_eggs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment