[arch-commits] Commit in jupyter-notebook/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Thu Mar 17 18:17:22 UTC 2022


    Date: Thursday, March 17, 2022 @ 18:17:22
  Author: arojas
Revision: 1156792

archrelease: copy trunk to community-any

Added:
  jupyter-notebook/repos/community-any/PKGBUILD
    (from rev 1156791, jupyter-notebook/trunk/PKGBUILD)
Deleted:
  jupyter-notebook/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   97 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 46 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-17 18:17:13 UTC (rev 1156791)
+++ PKGBUILD	2022-03-17 18:17:22 UTC (rev 1156792)
@@ -1,51 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=jupyter-notebook
-_pipname=notebook
-pkgver=6.4.10
-pkgrel=1
-pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
-arch=('any')
-url="https://github.com/jupyter/notebook"
-license=('BSD')
-depends=('python-jinja' 'python-tornado' 'python-terminado'
-         'python-traitlets' 'jupyter-nbformat' 'python-jupyter_core'
-         'python-jupyter_client' 'mathjax2' 'python-send2trash'
-         'jupyter-nbconvert' 'python-prometheus_client' 'python-argon2_cffi')
-# Much of their official dependency tree appears inverted and circular?
-makedepends=('python-build' 'python-installer' 'python-wheel' 'python-jupyter_packaging')
-#checkdepends=('python-pytest' 'python-selenium' 'python-requests')
-optdepends=('pandoc: notebook export')
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-md5sums=('dcf0e442d40d8d8407ded88276fb6a38')
-
-# todo: report bug that mathjax and nbconvert is no longer optional
-
-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
-}
-
-#check() {
-#  cd notebook-$pkgver
-#  pytest
-#}
-
-package() {
-  cd notebook-$pkgver
-
-  # 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"
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  install -Dm644 jupyter-notebook.desktop "$pkgdir/usr/share/applications/jupyter-notebook.desktop"
-}

Copied: jupyter-notebook/repos/community-any/PKGBUILD (from rev 1156791, jupyter-notebook/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-17 18:17:22 UTC (rev 1156792)
@@ -0,0 +1,46 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=jupyter-notebook
+_pipname=notebook
+pkgver=6.4.10
+pkgrel=2
+pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
+arch=('any')
+url="https://github.com/jupyter/notebook"
+license=('BSD')
+depends=('python-jinja' 'python-tornado' 'python-terminado'
+         'python-traitlets' 'jupyter-nbformat' 'python-jupyter_core'
+         'python-jupyter_client' 'mathjax2' 'python-send2trash'
+         'jupyter-nbconvert' 'python-prometheus_client' 'python-argon2_cffi')
+# Much of their official dependency tree appears inverted and circular?
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-jupyter_packaging')
+#checkdepends=('python-pytest' 'python-selenium' 'python-requests')
+optdepends=('pandoc: notebook export')
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+md5sums=('dcf0e442d40d8d8407ded88276fb6a38')
+
+# todo: report bug that mathjax and nbconvert is no longer optional
+
+build() {
+  cd notebook-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+#check() {
+#  cd notebook-$pkgver
+#  pytest
+#}
+
+package() {
+  cd notebook-$pkgver
+
+  # needs node
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  # FS45999 use system 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