From 04af13e29a1fbad38fb453fb39b6b10ac0804cd5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 7 Nov 2017 12:11:08 +0100 Subject: [PATCH] Update fabfile from develop --- fabfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fabfile.py b/fabfile.py index cfa80ead5..2894fe477 100644 --- a/fabfile.py +++ b/fabfile.py @@ -14,6 +14,7 @@ VENV_DIR = path.join(PWD, ENV) def env(lang='python2.7'): if path.exists(VENV_DIR): local('rm -rf {env}'.format(env=VENV_DIR)) + local('pip install virtualenv') local('python -m virtualenv -p {lang} {env}'.format(lang=lang, env=VENV_DIR)) @@ -32,6 +33,10 @@ def make(): local('pip install -r requirements.txt') local('python setup.py build_ext --inplace') +def sdist(): + with virtualenv(VENV_DIR): + with lcd(path.dirname(__file__)): + local('python setup.py sdist') def clean(): with lcd(path.dirname(__file__)):