check-package/check_package/tasks.py

12 lines
234 B
Python
Raw Normal View History

2018-07-12 15:55:08 -04:00
import tempfile
from invoke import task, run
@task()
def setup_virtualenvs(ctx):
temp_dir = tempfile.mkdtemp()
run('virtualenv {}'.format(temp_dir))
run('./{}/bin/activate'.format(temp_dir))
run('pip install -e .')