nixpkgs/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
581 B
Diff
Raw Normal View History

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