[arch-commits] Commit in jupyter-notebook/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Tue Mar 15 23:12:44 UTC 2022


    Date: Tuesday, March 15, 2022 @ 23:12:44
  Author: arojas
Revision: 1155215

Update to 6.4.10, use pypi tarball instead of downloading stuff at build time

Modified:
  jupyter-notebook/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-15 22:36:31 UTC (rev 1155214)
+++ PKGBUILD	2022-03-15 23:12:44 UTC (rev 1155215)
@@ -1,7 +1,8 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 
 pkgname=jupyter-notebook
-pkgver=6.4.9
+_pipname=notebook
+pkgver=6.4.10
 pkgrel=1
 pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
 arch=('any')
@@ -12,11 +13,11 @@
          '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-setuptools' 'npm' 'git')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-jupyter_packaging')
 #checkdepends=('python-pytest' 'python-selenium' 'python-requests')
 optdepends=('pandoc: notebook export')
-source=(https://github.com/jupyter/notebook/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-md5sums=('cbfce957842e8879ea4428c0c5e923cb')
+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
 
@@ -28,13 +29,12 @@
   #sed -i '/Trim mathjax/,/^                static_data.append/d' setupbase.py
   sed -i 's/  mj(/  #mj(/' setupbase.py
 
-  # needs node, downloads a lot of stuff
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 #check() {
 #  cd notebook-$pkgver
-#  python setup.py test
+#  pytest
 #}
 
 package() {
@@ -41,7 +41,7 @@
   cd notebook-$pkgver
 
   # needs node
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  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"



More information about the arch-commits mailing list