[arch-commits] Commit in jupyter-notebook/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Thu Mar 17 18:17:13 UTC 2022
Date: Thursday, March 17, 2022 @ 18:17:13
Author: arojas
Revision: 1156791
Fix mathjax
Modified:
jupyter-notebook/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-17 18:16:42 UTC (rev 1156790)
+++ PKGBUILD 2022-03-17 18:17:13 UTC (rev 1156791)
@@ -3,7 +3,7 @@
pkgname=jupyter-notebook
_pipname=notebook
pkgver=6.4.10
-pkgrel=1
+pkgrel=2
pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
arch=('any')
url="https://github.com/jupyter/notebook"
@@ -23,12 +23,6 @@
build() {
cd notebook-$pkgver
-
- # FS45999 disable bundled mathjax
- sed -i 's/^.*MathJax.*$//' bower.json
- #sed -i '/Trim mathjax/,/^ static_data.append/d' setupbase.py
- sed -i 's/ mj(/ #mj(/' setupbase.py
-
python -m build --wheel --no-isolation
}
@@ -43,8 +37,9 @@
# needs node
python -m installer --destdir="$pkgdir" dist/*.whl
# FS45999 use system mathjax
- ln -s /usr/share/mathjax2 \
- "$pkgdir/usr/lib/python3.10/site-packages/notebook/static/components/MathJax"
+ _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
+ rm -r "$pkgdir"$_pythonpath/notebook/static/components/MathJax
+ ln -s /usr/share/mathjax2 "$pkgdir"$_pythonpath/notebook/static/components/MathJax
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 jupyter-notebook.desktop "$pkgdir/usr/share/applications/jupyter-notebook.desktop"
More information about the arch-commits
mailing list