python313Packages.publicsuffixlist: 1.0.2.20250122 -> 1.0.2.20250124 (#376319)
[NixPkgs.git] / pkgs / development / python-modules / bokeh / hardcode-nodejs-npmjs-paths.patch
blob6dcec9ae51777a0a21d2b12db84160a723a5e16a
1 diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py
2 index 4f4314ac8..726610f4c 100644
3 --- a/src/bokeh/util/compiler.py
4 +++ b/src/bokeh/util/compiler.py
5 @@ -411,8 +411,8 @@ def _detect_nodejs() -> Path:
6 raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' +
7 '("conda install nodejs" or follow https://nodejs.org/en/download/)')
9 -_nodejs: Path | None = None
10 -_npmjs: Path | None = None
11 +_nodejs = "@node_bin@"
12 +_npmjs = "@npm_bin@"
14 def _nodejs_path() -> Path:
15 global _nodejs