Skip to content

Instantly share code, notes, and snippets.

@taras
Created October 12, 2009 03:35
Show Gist options
  • Save taras/208101 to your computer and use it in GitHub Desktop.
Save taras/208101 to your computer and use it in GitHub Desktop.
diff --git a/zerokspot/recipe/git/__init__.py b/zerokspot/recipe/git/__init__.py
index 004ee30..29900d8 100644
--- a/zerokspot/recipe/git/__init__.py
+++ b/zerokspot/recipe/git/__init__.py
@@ -6,6 +6,7 @@ subversion repositories::
[myapp]
recipe = zerokspot.recipe.git
repository = <url-of-repository>
+ path = <relative-path-to-package-source-inside-repository>
branch = <name-of-branch> # default: "master"
rev = <name-of-revision> # default: None
newest = [true|false] # default: false, stay up to date even when
@@ -104,6 +105,10 @@ class Recipe(object):
self.part_updated = False
self.cache_cloned = False
self.installed_from_cache = False
+ if options.has_key('path'):
+ self.path = os.path.join(options['location'], options['path'])
+ else:
+ self.path = options['location']
def install(self):
"""
@@ -225,6 +230,6 @@ class Recipe(object):
"""
Install clone as development egg.
"""
- path = self.options['location']
+ path = self.path
target = self.buildout['buildout']['develop-eggs-directory']
zc.buildout.easy_install.develop(path, target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment