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:
parent
e86c409e6b
commit
859051669b
1 changed files with 6 additions and 1 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue