From: Cheng Zhao Date: Fri, 3 Jul 2015 03:59:34 +0000 (+0800) Subject: Avoid using the old gyp lib in system X-Git-Tag: v0.29.0~1^2~20 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=83ee7a464d62810c950c872031a5bb43f539900a;p=electron.git Avoid using the old gyp lib in system --- diff --git a/script/update.py b/script/update.py index 2cbfa706..8c6283d1 100755 --- a/script/update.py +++ b/script/update.py @@ -51,6 +51,10 @@ def run_gyp(target_arch, component): # Force using win32 python on cygwin. python = os.path.join('vendor', 'python_26', 'python.exe') gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py') + gyp_pylib = os.path.join(os.path.dirname(gyp), 'pylib') + # Avoid using the old gyp lib in system. + env['PYTHONPATH'] = os.path.pathsep.join([gyp_pylib, + env.get('PYTHONPATH', '')]) defines = [ '-Dlibchromiumcontent_component={0}'.format(component), '-Dtarget_arch={0}'.format(target_arch),