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,6 +43,7 @@ def do_release(): ...@@ -43,6 +43,7 @@ def do_release():
subprocess.check_call(['hg', 'update', VERSION]) subprocess.check_call(['hg', 'update', VERSION])
build_docs() build_docs()
if os.path.isdir('./dist'):
shutil.rmtree('./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',
...@@ -58,6 +59,7 @@ def do_release(): ...@@ -58,6 +59,7 @@ def do_release():
subprocess.check_call(['hg', 'push']) subprocess.check_call(['hg', 'push'])
def build_docs(): def build_docs():
if os.path.isdir('docs/build'):
shutil.rmtree('docs/build') shutil.rmtree('docs/build')
subprocess.check_call([ subprocess.check_call([
'sphinx-build', 'sphinx-build',
......
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