diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2017-11-30 16:30:47 +0100 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2018-05-27 12:06:00 -0400 |
commit | 530b37c13e32df853ea0013c621f9bbeb7efd3f9 (patch) | |
tree | b93e61824e9842674bd413af3e7bc43033cfc5ed /dev-python/notebook/files | |
parent | media-libs/openal: fix mingw-w64 build (diff) | |
download | gentoo-530b37c13e32df853ea0013c621f9bbeb7efd3f9.tar.gz gentoo-530b37c13e32df853ea0013c621f9bbeb7efd3f9.tar.bz2 gentoo-530b37c13e32df853ea0013c621f9bbeb7efd3f9.zip |
dev-python/notebook: Version bump to 5.2.1
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/6356
Diffstat (limited to 'dev-python/notebook/files')
-rw-r--r-- | dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch b/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch new file mode 100644 index 000000000000..97be84cb364a --- /dev/null +++ b/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch @@ -0,0 +1,44 @@ +Disable bundled mathjax. + +Patch by Marius Brehler. +--- a/setupbase.py ++++ b/setupbase.py +@@ -168,38 +168,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') + |