From 3687528ba7080be47a40b89a6b8924e952cb07c8 Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Wed, 16 Dec 2015 18:49:02 +0100 Subject: [PATCH] get buildbot running --- build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 8a1ec4a36..f2824db91 100644 --- a/build.py +++ b/build.py @@ -27,10 +27,12 @@ if pip_date: x('pip install -r requirements.txt') if install_mode == 'pip': + for filename in os.listdir('dist'): + os.unlink(os.path.join('dist', filename)) x('python setup.py sdist') - dists = os.listdir('dist') - assert len(dists) == 1 - x('pip install dist/%s' % dists[0]) + filenames = os.listdir('dist') + assert len(filenames) == 1 + x('pip install dist/%s' % filenames[0]) elif install_mode == 'setup-install': x('python setup.py install')