Skip to content
Browse files

Don't try to bootstrap pip projects.

  • Loading branch information...
1 parent f186c29 commit 75a20f3ebcf12452719e1e057e4722e2292c8aaa @buchuki buchuki committed Sep 5, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −1 greatbigcrane/project/models.py
  2. +3 −2 greatbigcrane/project/views.py
View
2 greatbigcrane/project/models.py
@@ -75,7 +75,7 @@ def github_url(self):
url = ""
return url
- def prep_project(self):
+ def prep_buildout_project(self):
if not os.path.isdir(self.base_directory):
os.makedirs(self.base_directory)
skeleton = [(os.path.join(settings.PROJECT_HOME, "../bootstrap.py"),
View
5 greatbigcrane/project/views.py
@@ -77,8 +77,9 @@ def add_project(request):
queue_job("GITCLONE", project_id=instance.id)
else:
instance = form.save()
- instance.prep_project()
- queue_job("BOOTSTRAP", project_id=instance.id)
+ if instance.project_type == "buildout":
+ instance.prep_buildout_project()
+ queue_job("BOOTSTRAP", project_id=instance.id)
return redirect(instance.get_absolute_url())

0 comments on commit 75a20f3

Please sign in to comment.
Something went wrong with that request. Please try again.