Files
nixpkgs/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

16 lines
581 B
Diff

diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py
index 4f4314ac8..726610f4c 100644
--- a/src/bokeh/util/compiler.py
+++ b/src/bokeh/util/compiler.py
@@ -411,8 +411,8 @@ def _detect_nodejs() -> Path:
raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' +
'("conda install nodejs" or follow https://nodejs.org/en/download/)')
-_nodejs: Path | None = None
-_npmjs: Path | None = None
+_nodejs = "@node_bin@"
+_npmjs = "@npm_bin@"
def _nodejs_path() -> Path:
global _nodejs