diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-20 09:41:21 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-20 09:47:17 +0200 |
commit | 1ffa78e22e80a7c71c379cf5cbcc2987e4ac2f98 (patch) | |
tree | 21ded8fee1c1cd1fa009b37fa999e103c2cb6b88 /dev-python/notebook/files | |
parent | dev-python/secretstorage: Bump to 3.3.2 (diff) | |
download | gentoo-1ffa78e22e80a7c71c379cf5cbcc2987e4ac2f98.tar.gz gentoo-1ffa78e22e80a7c71c379cf5cbcc2987e4ac2f98.tar.bz2 gentoo-1ffa78e22e80a7c71c379cf5cbcc2987e4ac2f98.zip |
dev-python/notebook: Bump to 6.4.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/notebook/files')
-rw-r--r-- | dev-python/notebook/files/notebook-6.4.11-no-mathjax.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/notebook/files/notebook-6.4.11-no-mathjax.patch b/dev-python/notebook/files/notebook-6.4.11-no-mathjax.patch new file mode 100644 index 000000000000..85d326b9dfde --- /dev/null +++ b/dev-python/notebook/files/notebook-6.4.11-no-mathjax.patch @@ -0,0 +1,42 @@ +diff -dupr notebook-6.4.11.orig/setupbase.py notebook-6.4.11/setupbase.py +--- notebook-6.4.11.orig/setupbase.py 2022-04-20 09:37:45.964925905 +0200 ++++ notebook-6.4.11/setupbase.py 2022-04-20 09:40:32.624674341 +0200 +@@ -167,38 +167,6 @@ def find_package_data(): + if f.endswith(('.js', '.css')): + static_data.append(pjoin(parent, f)) + +- # Trim mathjax +- mj = lambda *path: pjoin(components, 'MathJax', *path) +- static_data.extend([ +- mj('MathJax.js'), +- mj('config', 'TeX-AMS-MML_HTMLorMML-full.js'), +- mj('config', 'Safe.js'), +- ]) +- +- trees = [] +- mj_out = mj('jax', 'output') +- +- if os.path.exists(mj_out): +- for output in os.listdir(mj_out): +- path = pjoin(mj_out, output) +- static_data.append(pjoin(path, '*.js')) +- autoload = pjoin(path, 'autoload') +- if os.path.isdir(autoload): +- trees.append(autoload) +- +- for tree in trees + [ +- mj('localization'), # limit to en? +- mj('fonts', 'HTML-CSS', 'STIX-Web', 'woff'), +- mj('extensions'), +- mj('jax', 'input', 'TeX'), +- mj('jax', 'output', 'HTML-CSS', 'fonts', 'STIX-Web'), +- mj('jax', 'output', 'SVG', 'fonts', 'STIX-Web'), +- mj('jax', 'element', 'mml'), +- ]: +- for parent, dirs, files in os.walk(tree): +- for f in files: +- static_data.append(pjoin(parent, f)) +- + os.chdir(os.path.join('tests',)) + js_tests = glob('*.js') + glob('*/*.js') + |