From e00f87c7934aaf5dab458a8b80da710e54487986 Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Fri, 18 Dec 2015 12:26:18 +0100 Subject: [PATCH] cleanup tmp dir --- build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 927310fb4..07785e951 100644 --- a/build.py +++ b/build.py @@ -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()