Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gyp_main.py relies on the gyp version installed on the host #491

Open
GoogleCodeExporter opened this issue Sep 10, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. install Debian GNU/Linux testing, install gyp by means of apt
2. clone this repository
3. invoke gyp_main.py

What is the expected output? What do you see instead?

I'd expect all the options to be available (as an example --root-target), 
instead gyp_main.py invokes the gyp present in the system which does not offer 
those options.
Usually, I clone the repo because I'm interested in the most updated code.
Instead the gyp_main.py file do not patch the sys.path and relies on something 
different.

What version of the product are you using? On what operating system?

I've cloned the gyp repo, branch master. OS is Debian GNU/Linux (testing)

Please provide any additional information below.

The problem can be solved patching the file gyp_main.py as follows:

[...]
try:
  import os.path
  sys.path = [os.path.join(os.path.dirname(sys.argv[0]), 'pylib')] + sys.path
  import gyp
[...]

Original issue reported on code.google.com by michele....@cynny.com on 18 May 2015 at 11:20

@GoogleCodeExporter
Copy link
Author

nevermind, using PYTHONPATH the problem is solved. no need to patch gyp_main.py.
anyway, I'm still trying to figure out why a freshly cloned repo should rely on 
the gyp version installed in the system.

Original comment by michele....@cynny.com on 18 May 2015 at 12:30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant