mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-136852: Emscripten: Add PYTHON_NODE_VERSION environment variable (#136853)
To choose the node version we use. Together with: https://github.com/python/buildmaster-config/pull/614 closes #136852.
This commit is contained in:
parent
acbe896cb1
commit
aec7f5f8b2
1 changed files with 11 additions and 0 deletions
|
|
@ -206,6 +206,17 @@ def configure_emscripten_python(context, working_dir):
|
|||
sysconfig_data += "-pydebug"
|
||||
|
||||
host_runner = context.host_runner
|
||||
if node_version := os.environ.get("PYTHON_NODE_VERSION", None):
|
||||
res = subprocess.run(
|
||||
[
|
||||
"bash",
|
||||
"-c",
|
||||
f"source ~/.nvm/nvm.sh && nvm which {node_version}",
|
||||
],
|
||||
text=True,
|
||||
capture_output=True,
|
||||
)
|
||||
host_runner = res.stdout
|
||||
pkg_config_path_dir = (PREFIX_DIR / "lib/pkgconfig/").resolve()
|
||||
env_additions = {
|
||||
"CONFIG_SITE": config_site,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue