mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 10:18:08 -07:00
dev-python/notebook: Version bump to 5.0.0
Package-Manager: Portage-2.3.6, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/5215
This commit is contained in:
committed by
David Seifert
parent
55d1b2f900
commit
6e160c7a26
43
dev-python/notebook/files/notebook-5.0.0-setupbase.py.patch
Normal file
43
dev-python/notebook/files/notebook-5.0.0-setupbase.py.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
Disable bundled mathjax.
|
||||
|
||||
Patch by Marius Brehler
|
||||
--- a/setupbase.py
|
||||
+++ b/setupbase.py
|
||||
@@ -165,37 +165,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'),
|
||||
- ]:
|
||||
- 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')
|
||||
|
||||
Reference in New Issue
Block a user