depot/third_party/nixpkgs/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

14 lines
488 B
Diff

diff -ru a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py
--- a/src/bokeh/util/compiler.py
+++ b/src/bokeh/util/compiler.py
@@ -411,8 +411,8 @@
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 = None
-_npmjs = None
+_nodejs = "@node_bin@"
+_npmjs = "@npm_bin@"
def _nodejs_path() -> str:
global _nodejs