Commit 275b2e4f authored by Gary Poster's avatar Gary Poster

merge from python-support-8

parents 9c0f745e 3f3925dd
......@@ -909,7 +909,10 @@ class Buildout(UserDict.DictMixin):
# the new dist is different, so we've upgraded.
# Update the scripts and return True
partsdir = os.path.join(options['parts-directory'], 'buildout')
if not os.path.exists(partsdir):
if os.path.exists(partsdir):
# This is primarily for unit tests, in which .py files change too
# fast for Python to know to regenerate the .pyc/.pyo files.
shutil.rmtree(partsdir)
os.mkdir(partsdir)
zc.buildout.easy_install.sitepackage_safe_scripts(
options['bin-directory'], ws, sys.executable, partsdir,
......
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