From fa94ed8d05639bf129c9357fff0fe9da62b146d2 Mon Sep 17 00:00:00 2001 From: Jim Fulton <jim@zope.com> Date: Mon, 12 Jun 2006 20:18:29 +0000 Subject: [PATCH] Renamed several options to use -s rather than _s. --- eggrecipe/src/zc/recipe/egg/README.txt | 12 ++++++------ eggrecipe/src/zc/recipe/egg/egg.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/eggrecipe/src/zc/recipe/egg/README.txt b/eggrecipe/src/zc/recipe/egg/README.txt index 802dd98..65ef4c7 100644 --- a/eggrecipe/src/zc/recipe/egg/README.txt +++ b/eggrecipe/src/zc/recipe/egg/README.txt @@ -11,7 +11,7 @@ distribution 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. To illustrate this, we've created a directory with some sample eggs: @@ -33,11 +33,11 @@ install the demo package. ... [demo] ... recipe = zc.recipe.egg ... distribution = demo <0.3 - ... find_links = %s + ... find-links = %s ... """ % sample_eggs) In this example, we limited ourself to revisions before 0.3. We also -specified where to find distributions using the find_links option. +specified where to find distributions using the find-links option. Let's run the buildout: @@ -103,7 +103,7 @@ specification. For example, if we remove the restriction on demo: ... ... [demo] ... recipe = zc.recipe.egg - ... find_links = %s + ... find-links = %s ... """ % sample_eggs) and rerun the buildout: @@ -138,7 +138,7 @@ arguments: ... ... [demo] ... recipe = zc.recipe.egg - ... find_links = %s + ... find-links = %s ... scripts = ... """ % sample_eggs) @@ -158,7 +158,7 @@ You can also control the name used for scripts: ... ... [demo] ... recipe = zc.recipe.egg - ... find_links = %s + ... find-links = %s ... scripts = demo=foo ... """ % sample_eggs) diff --git a/eggrecipe/src/zc/recipe/egg/egg.py b/eggrecipe/src/zc/recipe/egg/egg.py index 86c7b77..78a4519 100644 --- a/eggrecipe/src/zc/recipe/egg/egg.py +++ b/eggrecipe/src/zc/recipe/egg/egg.py @@ -29,8 +29,8 @@ class Egg: def install(self): distribution = self.options.get('distribution', self.name) links = self.options.get( - 'find_links', - self.buildout['buildout'].get('find_links'), + 'find-links', + self.buildout['buildout'].get('find-links'), ) if links: links = links.split() -- 2.30.9