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
549 B
Diff
Raw Normal View History

2022-12-30 19:12:59 +00:00
diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py
index 9af8691..4b93543 100644
--- a/src/bokeh/util/compiler.py
+++ b/src/bokeh/util/compiler.py
@@ -415,8 +415,8 @@ def _detect_nodejs() -> str:
raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' +
2019-09-01 06:32:43 +00:00
'("conda install nodejs" or follow https://nodejs.org/en/download/)')
-_nodejs = None
-_npmjs = None
+_nodejs = "@node_bin@"
+_npmjs = "@npm_bin@"
2022-12-30 19:12:59 +00:00
def _nodejs_path() -> str:
2019-09-01 06:32:43 +00:00
global _nodejs