From ccbcc8e0e13c152c5c69224522d783675d698bab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Sep 2009 13:53:07 -0600 Subject: [PATCH] IGN:... --- setup/publish.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup/publish.py b/setup/publish.py index f910543850..7350131fc3 100644 --- a/setup/publish.py +++ b/setup/publish.py @@ -6,7 +6,7 @@ __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal ' __docformat__ = 'restructuredtext en' -import sys, os, shutil, subprocess, re, time +import sys, os, shutil, subprocess, re, time, glob from datetime import datetime from setup import Command, __appname__, __version__ @@ -31,6 +31,11 @@ class Stage2(Command): description = 'Stage 2 of the publish process' sub_commands = ['linux', 'win', 'osx'] + def pre_sub_commands(self, opts): + for x in glob.glob(os.path.join(self.SRC, 'dist', '*')): + os.remove(x) + + class Stage3(Command): description = 'Stage 3 of the publish process'