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

merge from python-support-8

parents 9c0f745e 3f3925dd
...@@ -909,8 +909,11 @@ class Buildout(UserDict.DictMixin): ...@@ -909,8 +909,11 @@ class Buildout(UserDict.DictMixin):
# the new dist is different, so we've upgraded. # the new dist is different, so we've upgraded.
# Update the scripts and return True # Update the scripts and return True
partsdir = os.path.join(options['parts-directory'], 'buildout') partsdir = os.path.join(options['parts-directory'], 'buildout')
if not os.path.exists(partsdir): if os.path.exists(partsdir):
os.mkdir(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( zc.buildout.easy_install.sitepackage_safe_scripts(
options['bin-directory'], ws, sys.executable, partsdir, options['bin-directory'], ws, sys.executable, partsdir,
reqs=['zc.buildout']) reqs=['zc.buildout'])
......
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