This commit is contained in:
Kovid Goyal 2009-09-11 13:53:07 -06:00
parent 10af51b5a7
commit ccbcc8e0e1

View File

@ -6,7 +6,7 @@ __license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
import sys, os, shutil, subprocess, re, time import sys, os, shutil, subprocess, re, time, glob
from datetime import datetime from datetime import datetime
from setup import Command, __appname__, __version__ from setup import Command, __appname__, __version__
@ -31,6 +31,11 @@ class Stage2(Command):
description = 'Stage 2 of the publish process' description = 'Stage 2 of the publish process'
sub_commands = ['linux', 'win', 'osx'] 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): class Stage3(Command):
description = 'Stage 3 of the publish process' description = 'Stage 3 of the publish process'