Commits

Mikhail Korobov  committed 0adca19

pip.virtualenv_create accepts virtualenv name

  • Participants
  • Parent commits d1c9d73

Comments (0)

Files changed (1)

File fab_deploy/pip.py

     do_setup_conf()
 
 @task
-def virtualenv_create():
+def virtualenv_create(name=None):
     run('mkdir -p envs')
     run('mkdir -p src')
+    if name is None:
+        name = env.conf['INSTANCE_NAME']
     with cd('envs'):
-        run('virtualenv --no-site-packages %s' % env.conf['INSTANCE_NAME'])
+        run('virtualenv --no-site-packages %s' % name)