-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tools,build: use the python interpreter running gyp througout the whole build process #27476
Conversation
@nodejs/build-files @nodejs/gyp |
Hello @dothebart and thank you for the contribution! I think I understand what you are proposing, but I'd like to ask what was the specific motivation for this PR at this time? Did you experience problems with the current set-up? WRT the changes in node/tools/gyp/pylib/gyp/input.py Lines 876 to 882 in 6f02f15
|
hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments.
I'm still considering the impact of this change 🤔
@@ -10,6 +10,8 @@ | |||
# Make sure we're using the version of pylib in this repo, not one installed | |||
# elsewhere on the system. | |||
sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), 'pylib')) | |||
sys.argv.append("-DPYTHON_EXECUTABLE=" + os.path.realpath(sys.executable)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should be upstreamed to https://github.com/refack/GYP
In the context of this PR it's not necessary as there are should no be any direct calls to GYP outside of through ./configure
bin_override = None if sys.platform == 'win32' else make_bin_override() | ||
if bin_override: | ||
config = 'export PATH:=' + bin_override + ':$(PATH)\n' + config | ||
os.environ['PYTHON_EXECUTABLE'] = sys.executable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is not used in the context of this PR.
I've forked GYP as GYP3 in https://github.com/refack/GYP, and the plan is to migrate node to use that #26620. Hopefully the fork's PR process will be more agile. |
Co-Authored-By: Refael Ackermann <refack@gmail.com>
8ae28ff
to
2935f72
Compare
Closing as this is out of date and hasn't had any activity in over a year |
make -j4 test
(UNIX), orvcbuild test
(Windows) passes