2009-06-01 09:55:11 +00:00
|
|
|
#!/usr/bin/env python
|
2009-08-05 08:59:46 +00:00
|
|
|
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
#
|
|
|
|
# This software is licensed under the "HS" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
|
|
|
# http://www.hardcoded.net/licenses/hs_license
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path as op
|
|
|
|
import shutil
|
|
|
|
|
2009-06-10 11:17:43 +00:00
|
|
|
from hsutil.build import print_and_do
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
if op.exists('build'):
|
|
|
|
shutil.rmtree('build')
|
|
|
|
if op.exists('dist'):
|
|
|
|
shutil.rmtree('dist')
|
|
|
|
|
2009-06-10 11:17:43 +00:00
|
|
|
print_and_do('python -u setup.py py2app')
|