Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
Allows you to install w/ your own virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 27, 2012
1 parent ac3fcfc commit bca4941
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion funfactory/__init__.py
Original file line number Original file line Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.1' __version__ = '2.0.2'
8 changes: 7 additions & 1 deletion funfactory/cmd.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def main():
ps.add_option('--repo-dest', ps.add_option('--repo-dest',
help='Clone repository into this directory. ' help='Clone repository into this directory. '
'Default: DEST/PKG') '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', ps.add_option('-P', '--python',
help='Python interpreter to use in your virtualenv. ' help='Python interpreter to use in your virtualenv. '
'Default: which %default', 'Default: which %default',
Expand Down Expand Up @@ -293,7 +296,10 @@ def main():
options.pkg)) options.pkg))
clone_repo(options.pkg, options.dest, options.repo, options.repo_dest, clone_repo(options.pkg, options.dest, options.repo, options.repo_dest,
options.branch) 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) install_reqs(venv, options.repo_dest)
init_pkg(options.pkg, options.repo_dest) init_pkg(options.pkg, options.repo_dest)
create_settings(options.pkg, options.repo_dest, options.db_user, create_settings(options.pkg, options.repo_dest, options.db_user,
Expand Down

0 comments on commit bca4941

Please sign in to comment.