
Author: barry.warsaw Date: Wed Sep 30 00:53:31 2009 New Revision: 75153 Log: export(): The shutil removal of build, dist, tools/docutils, tools/jinja2, tools/pygments, and tools/sphinx is incorrect for Python 2.6. These directories live in the source directory, not in the dist directory, so the remvals fail. Just ignore the errors. Modified: sandbox/trunk/release/release.py Modified: sandbox/trunk/release/release.py ============================================================================== --- sandbox/trunk/release/release.py (original) +++ sandbox/trunk/release/release.py Wed Sep 30 00:53:31 2009 @@ -276,12 +276,12 @@ with changed_dir(os.path.join(archivename, 'Doc')): print('Removing doc build artifacts') - shutil.rmtree('build') - shutil.rmtree('dist') - shutil.rmtree('tools/docutils') - shutil.rmtree('tools/jinja2') - shutil.rmtree('tools/pygments') - shutil.rmtree('tools/sphinx') + shutil.rmtree('build', ignore_errors=True) + shutil.rmtree('dist', ignore_errors=True) + shutil.rmtree('tools/docutils', ignore_errors=True) + shutil.rmtree('tools/jinja2', ignore_errors=True) + shutil.rmtree('tools/pygments', ignore_errors=True) + shutil.rmtree('tools/sphinx', ignore_errors=True) for dirpath, dirnames, filenames in os.walk('.'): for filename in filenames: if filename.endswith('.pyc'):
participants (1)
-
barry.warsaw