nixpkgs-suyu/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch
Martin Weinelt 9c35e69c84 Revert "python3Packages.bokeh: 2.4.3 -> 3.0.3"
This reverts commit 1ac65c004e.

Reverse dependencies are not ready yet, breaks panel and multiple other
packages.
2023-02-09 13:50:38 +01:00

15 lines
520 B
Diff

diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py
index a752aad7d..8af05ff63 100644
--- a/bokeh/util/compiler.py
+++ b/bokeh/util/compiler.py
@@ -442,8 +442,8 @@ def _detect_nodejs():
raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version +
'("conda install nodejs" or follow https://nodejs.org/en/download/)')
-_nodejs = None
-_npmjs = None
+_nodejs = "@node_bin@"
+_npmjs = "@npm_bin@"
def _nodejs_path():
global _nodejs