Permalink
Browse files

Allows you to install w/ your own virtualenv

  • Loading branch information...
1 parent ac3fcfc commit bca4941079233dd96fa9007020f70f6259d9ae7a @kumar303 kumar303 committed Jan 27, 2012
Showing with 8 additions and 2 deletions.
  1. +1 −1 funfactory/__init__.py
  2. +7 −1 funfactory/cmd.py
View
@@ -1 +1 @@
-__version__ = '2.0.1'
+__version__ = '2.0.2'
View
@@ -255,6 +255,9 @@ def main():
ps.add_option('--repo-dest',
help='Clone repository into this directory. '
'Default: DEST/PKG')
+ ps.add_option('--venv',
+ help='Path to an existing virtualenv you want to use. '
+ 'Otherwise, a new one will be created for you.')
ps.add_option('-P', '--python',
help='Python interpreter to use in your virtualenv. '
'Default: which %default',
@@ -293,7 +296,10 @@ def main():
options.pkg))
clone_repo(options.pkg, options.dest, options.repo, options.repo_dest,
options.branch)
- venv = create_virtualenv(options.pkg, options.repo_dest, options.python)
+ if options.venv:
+ venv = options.venv
+ else:
+ venv = create_virtualenv(options.pkg, options.repo_dest, options.python)
install_reqs(venv, options.repo_dest)
init_pkg(options.pkg, options.repo_dest)
create_settings(options.pkg, options.repo_dest, options.db_user,

0 comments on commit bca4941

Please sign in to comment.