cleanup tmp dir

This commit is contained in:
Henning Peters 2015-12-18 12:26:18 +01:00
parent 7f7299cafb
commit e00f87c793
1 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
from __future__ import print_function
import os
import sys
import shutil
from subprocess import call
@ -38,14 +39,14 @@ elif install_mode == 'setup-install':
x('python setup.py install')
elif install_mode == 'setup-develop':
x('python setup.py develop')
x('pip install -e .')
x('pip install pytest')
x('pip list')
if not os.path.exists('tmp'):
os.mkdir('tmp')
if os.path.exists('tmp'):
shutil.rmtree('tmp')
os.mkdir('tmp')
try:
old = os.getcwd()