[Distutils] Permission Denied errors on Windows 7 with buildout 1.7.1

Chris Withers chris at python.org
Mon Jun 10 13:00:36 CEST 2013


On 10/06/2013 10:37, Chris Withers wrote:
> I've tried blowing away the egg cache on the original machine, no joy,
> the error still occurs when the buildout is re-run.
>
> I'm stumped as to what the difference is that's making a difference here...

Well, the failing machine generates a buildout-script.py that looks like 
this:

#!"C:\Python27\python.exe" -S

import sys
sys.path[0:0] = [
     'C:\\Jenkins\\workspace\\checker-buildout\\aeb5917b\\parts\\buildout',
     ]


import os
path = sys.path[0]
if os.environ.get('PYTHONPATH'):
     path = os.pathsep.join([path, os.environ['PYTHONPATH']])
os.environ['BUILDOUT_ORIGINAL_PYTHONPATH'] = 
os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = path
import site # imports custom buildout-generated site.py

import zc.buildout.buildout

if __name__ == '__main__':
     sys.exit(zc.buildout.buildout.main())

However, the identical machine that works generates this instead:

#!"C:\Python27\python.exe"

import sys
sys.path[0:0] = [
     'h:\\checker',
     'h:\\checker\\eggs\\tox-1.4.3-py2.7.egg',
     'h:\\checker\\eggs\\zope.testing-4.1.2-py2.7.egg',
     'h:\\checker\\eggs\\zc.recipe.egg-1.3.2-py2.7.egg',
     'h:\\checker\\eggs\\zc.buildout-1.7.1-py2.7.egg',
     'h:\\checker\\eggs\\testfixtures-3.0.0-py2.7.egg',
     'h:\\checker\\eggs\\nose_cov-1.6-py2.7.egg',
     'h:\\checker\\eggs\\nose_fixes-1.3-py2.7.egg',
     'h:\\checker\\eggs\\nose-1.3.0-py2.7.egg',
     'h:\\checker\\eggs\\manuel-1.7.2-py2.7.egg',
     'h:\\checker\\eggs\\mock-1.0.1-py2.7.egg',
     'h:\\checker\\eggs\\zope.dottedname-4.0.1-py2.7.egg',
     'h:\\checker\\eggs\\mailinglogger-3.7.0-py2.7.egg',
     'h:\\checker\\eggs\\execute-1.2-py2.7.egg',
     'h:\\checker\\eggs\\argparse-1.2.1-py2.7.egg',
     'h:\\checker\\eggs\\py-1.4.14-py2.7.egg',
     'h:\\checker\\eggs\\virtualenv-1.9.1-py2.7.egg',
     'h:\\checker\\eggs\\zope.interface-4.0.5-py2.7-win32.egg',
     'h:\\checker\\eggs\\zope.exceptions-4.0.6-py2.7.egg',
     'h:\\checker\\eggs\\setuptools-0.7.2-py2.7.egg',
     'h:\\checker\\eggs\\cov_core-1.7-py2.7.egg',
     'h:\\checker\\eggs\\six-1.3.0-py2.7.egg',
     'h:\\checker\\eggs\\coverage-3.6-py2.7-win32.egg',
     ]


import zc.buildout.buildout

if __name__ == '__main__':
     sys.exit(zc.buildout.buildout.main())

Anyone know what could cause the different scripts to be generated?
zc.recipe.egg and zc.buildout versions look identical on both machines...

*sigh*

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk


More information about the Distutils-SIG mailing list