Skip to content

Commit 04af13e

Browse files
committed
Update fabfile from develop
1 parent cc256e9 commit 04af13e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fabfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
def env(lang='python2.7'):
1515
if path.exists(VENV_DIR):
1616
local('rm -rf {env}'.format(env=VENV_DIR))
17+
local('pip install virtualenv')
1718
local('python -m virtualenv -p {lang} {env}'.format(lang=lang, env=VENV_DIR))
1819

1920

@@ -32,6 +33,10 @@ def make():
3233
local('pip install -r requirements.txt')
3334
local('python setup.py build_ext --inplace')
3435

36+
def sdist():
37+
with virtualenv(VENV_DIR):
38+
with lcd(path.dirname(__file__)):
39+
local('python setup.py sdist')
3540

3641
def clean():
3742
with lcd(path.dirname(__file__)):

0 commit comments

Comments
 (0)