Make sure our copy of gyp is used

If gyp is installed on the system, gyp_main.py might find it instead of our own
version.
This commit is contained in:
Adam Roben 2014-07-07 14:40:22 -04:00
parent e86c409e6b
commit 859051669b

View file

@ -15,7 +15,12 @@ def main():
def run_gyp(): def run_gyp():
return subprocess.call([sys.executable, GYP, '--depth', '.', 'brightray.gyp']) env = os.environ.copy()
gyp_pylib = os.path.join(os.path.dirname(GYP), 'pylib')
env['PYTHONPATH'] = os.path.pathsep.join([gyp_pylib,
env.get('PYTHONPATH', '')])
return subprocess.call([sys.executable, GYP, '--depth', '.',
'brightray.gyp'], env=env)
def build(): def build():