Debian Codegraph @

debian/patches/dont-try-to-build-with-npm.patch

raw
1 Description: don't try to build JS package with npm
2 Author: Yadd <[email protected]>
3 Forwarded: (no|not-needed|<patch-forwarded-url>)
4 Last-Update: 2023-12-26
5
6 --- a/bqplot/setup.py
7 +++ b/bqplot/setup.py
8 @@ -46,17 +46,8 @@
9 ('etc/jupyter/nbconfig/notebook.d', 'etc/jupyter/nbconfig/notebook.d', 'bqplot.json'),
10 ]
11
12 -js_command = combine_commands(
13 - install_npm(js_dir, build_dir='share/jupyter/', source_dir='js/src', build_cmd='build'), ensure_targets(jstargets),
14 -)
15 -
16 # Adding "map_data" as package_data manually, this should not be needed because it's already
17 # specified in MANIFEST and include_package_data=True. This might be a bug in jupyter-packaging?
18 cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec, package_data_spec={"bqplot": ["map_data/*.json"]})
19 -is_repo = os.path.exists(os.path.join(here, '.git'))
20 -if is_repo:
21 - cmdclass['jsdeps'] = js_command
22 -else:
23 - cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)
24
25 setup(version=version, cmdclass=cmdclass)