Commit 7a512c06 authored by Jason R. Coombs's avatar Jason R. Coombs

Fixed issue in rmtree calls

--HG--
branch : distribute
extra : rebase_source : 9ea9db9ab7c23c06e6fdf087f50938e995f0d187
parent 9af04bdc
...@@ -43,7 +43,8 @@ def do_release(): ...@@ -43,7 +43,8 @@ def do_release():
subprocess.check_call(['hg', 'update', VERSION]) subprocess.check_call(['hg', 'update', VERSION])
build_docs() build_docs()
shutil.rmtree('./dist') if os.path.isdir('./dist'):
shutil.rmtree('./dist')
subprocess.check_call([sys.executable, 'setup.py', subprocess.check_call([sys.executable, 'setup.py',
'-q', 'egg_info', '-RD', '-b', '""', 'sdist', 'register', '-q', 'egg_info', '-RD', '-b', '""', 'sdist', 'register',
'upload', 'upload_docs']) 'upload', 'upload_docs'])
...@@ -58,7 +59,8 @@ def do_release(): ...@@ -58,7 +59,8 @@ def do_release():
subprocess.check_call(['hg', 'push']) subprocess.check_call(['hg', 'push'])
def build_docs(): def build_docs():
shutil.rmtree('docs/build') if os.path.isdir('docs/build'):
shutil.rmtree('docs/build')
subprocess.check_call([ subprocess.check_call([
'sphinx-build', 'sphinx-build',
'-b', 'html', '-b', 'html',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment