remove previous builds

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-06 14:33:09 -05:00
parent 54d10face8
commit f99728387b
+5
View File
@@ -50,6 +50,11 @@ class DebCommand(Command):
pass
def run(self):
try:
self.status('Removing previous builds…')
rmtree(os.path.join(here, 'deb_dist'))
except FileNotFoundError:
pass
self.status(u'Creating debian mainfest…')
os.system('python setup.py --command-packages=stdeb.command sdist_dsc')