Skip to content

Commit 4f6f3ee

Browse files
[3.14] gh-136852: Emscripten: Add PYTHON_NODE_VERSION environment variable (GH-136853) (GH-136907)
To choose the node version we use. Together with: python/buildmaster-config#614 closes GH-136852. (cherry picked from commit aec7f5f) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent a69472e commit 4f6f3ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tools/wasm/emscripten/__main__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ def configure_emscripten_python(context, working_dir):
206206
sysconfig_data += "-pydebug"
207207

208208
host_runner = context.host_runner
209+
if node_version := os.environ.get("PYTHON_NODE_VERSION", None):
210+
res = subprocess.run(
211+
[
212+
"bash",
213+
"-c",
214+
f"source ~/.nvm/nvm.sh && nvm which {node_version}",
215+
],
216+
text=True,
217+
capture_output=True,
218+
)
219+
host_runner = res.stdout.strip()
209220
pkg_config_path_dir = (PREFIX_DIR / "lib/pkgconfig/").resolve()
210221
env_additions = {
211222
"CONFIG_SITE": config_site,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy