Skip to content

Commit 83ee7a4

Browse files
committed
Avoid using the old gyp lib in system
1 parent 8e5a434 commit 83ee7a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/update.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def run_gyp(target_arch, component):
5151
# Force using win32 python on cygwin.
5252
python = os.path.join('vendor', 'python_26', 'python.exe')
5353
gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py')
54+
gyp_pylib = os.path.join(os.path.dirname(gyp), 'pylib')
55+
# Avoid using the old gyp lib in system.
56+
env['PYTHONPATH'] = os.path.pathsep.join([gyp_pylib,
57+
env.get('PYTHONPATH', '')])
5458
defines = [
5559
'-Dlibchromiumcontent_component={0}'.format(component),
5660
'-Dtarget_arch={0}'.format(target_arch),

0 commit comments

Comments
 (0)