diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2016-05-21 19:08:26 +0200 |
---|---|---|
committer | Marius Brehler <marbre@linux.sungazer.de> | 2016-05-21 19:08:26 +0200 |
commit | bd00e3ca1b8315b7f4993da7c4fd50d8120c9373 (patch) | |
tree | 2fbb462cf06368b27c0410dcb3029349ea5c5a3d /dev-python/notebook/files | |
parent | dev-python/nbconvert: Version bump (diff) | |
download | gentoo-bd00e3ca1b8315b7f4993da7c4fd50d8120c9373.tar.gz gentoo-bd00e3ca1b8315b7f4993da7c4fd50d8120c9373.tar.bz2 gentoo-bd00e3ca1b8315b7f4993da7c4fd50d8120c9373.zip |
dev-python/notebook: Version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-python/notebook/files')
-rw-r--r-- | dev-python/notebook/files/notebook-4.2.0-setupbase.py.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/notebook/files/notebook-4.2.0-setupbase.py.patch b/dev-python/notebook/files/notebook-4.2.0-setupbase.py.patch new file mode 100644 index 000000000000..a4c29048b925 --- /dev/null +++ b/dev-python/notebook/files/notebook-4.2.0-setupbase.py.patch @@ -0,0 +1,42 @@ +Disable bundled mathjax. + +Patch by Marius Brehler +--- a/setupbase.py ++++ b/setupbase.py +@@ -152,36 +152,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_HTML-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'), +- ]: +- 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') |