aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2011-10-14 12:17:40 -0400
committerJason R. Coombs <jaraco@jaraco.com>2011-10-14 12:17:40 -0400
commit7a512c0681cbb92aa8ec9b31d86e25ef2e4e995b (patch)
treef86ac2ec196a78cbc888f7bdfa6cac3ea61f76f0 /release.py
parent9af04bdc389e811e4d97187cf3be7a7f531b787b (diff)
downloadexternal_python_setuptools-7a512c0681cbb92aa8ec9b31d86e25ef2e4e995b.tar.gz
external_python_setuptools-7a512c0681cbb92aa8ec9b31d86e25ef2e4e995b.tar.bz2
external_python_setuptools-7a512c0681cbb92aa8ec9b31d86e25ef2e4e995b.zip
Fixed issue in rmtree calls
--HG-- branch : distribute extra : rebase_source : 9ea9db9ab7c23c06e6fdf087f50938e995f0d187
Diffstat (limited to 'release.py')
-rw-r--r--release.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release.py b/release.py
index b353156c..a6044ecd 100644
--- a/release.py
+++ b/release.py
@@ -43,7 +43,8 @@ def do_release():
subprocess.check_call(['hg', 'update', VERSION])
build_docs()
- shutil.rmtree('./dist')
+ if os.path.isdir('./dist'):
+ shutil.rmtree('./dist')
subprocess.check_call([sys.executable, 'setup.py',
'-q', 'egg_info', '-RD', '-b', '""', 'sdist', 'register',
'upload', 'upload_docs'])
@@ -58,7 +59,8 @@ def do_release():
subprocess.check_call(['hg', 'push'])
def build_docs():
- shutil.rmtree('docs/build')
+ if os.path.isdir('docs/build'):
+ shutil.rmtree('docs/build')
subprocess.check_call([
'sphinx-build',
'-b', 'html',