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

Kyle Keen kkeen at archlinux.org
Sun Aug 16 15:17:38 UTC 2015


    Date: Sunday, August 16, 2015 @ 17:17:38
  Author: kkeen
Revision: 138415

upgpkg: jupyter 4.0.2-4  FS#45999

Modified:
  jupyter/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-16 14:17:58 UTC (rev 138414)
+++ PKGBUILD	2015-08-16 15:17:38 UTC (rev 138415)
@@ -4,7 +4,7 @@
 pkgbase=jupyter
 pkgname=(jupyter ipython2-notebook)
 pkgver=4.0.2
-pkgrel=3
+pkgrel=4
 pkgdesc="A language-agnostic web-based interactive shell/notebook server."
 arch=('any')
 url="http://jupyter.org/"
@@ -13,7 +13,8 @@
          'python-jinja' 'python-pyzmq' 'python-tornado' 'python-jsonschema'
          'python-terminado' 'python-mistune' 'python-pygments')
 makedepends=('python-setuptools' 'python2-setuptools' 'npm' 'git')
-optdepends=('python-pyqt5: qtconsole'
+optdepends=('mathjax: latex equation rendering'
+            'python-pyqt5: qtconsole'
             'python-sip: qtconsole')
 source=("jupyter_core.tgz::https://github.com/jupyter/jupyter_core/archive/$pkgver.tar.gz"
         "ipykernel.tgz::https://github.com/ipython/ipykernel/archive/4.0.3.tar.gz"
@@ -46,12 +47,20 @@
   cp -r qtconsole-4.0.0      python2-qtconsole-4.0.0
 }
 
-build_jupyter() {
+build() {
   cd "$srcdir"
-}
 
-build_ipython2-notebook() {
-  cd "$srcdir"
+  # FS45999 disable bundled mathjax
+  cd "$srcdir/notebook-4.0.1"
+  sed -i 's/^.*MathJax.*$//' bower.json 
+  #sed -i '/Trim mathjax/,/^                static_data.append/d' setupbase.py
+  sed -i 's/mj(/#mj(/' setupbase.py
+  # needs node, downloads a lot of stuff
+  python3 setup.py build
+
+  cd "$srcdir/ipywidgets-4.0.2"
+  # needs node, downloads a lot of stuff
+  python3 setup.py build
 }
 
 package_jupyter() {
@@ -66,16 +75,14 @@
   #python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
 
   cd "$srcdir/ipywidgets-4.0.2"
-  # needs node
-  # not sure why this is broken
-  # weird read perms error on ~/.config/configstore/bower-github.yml ?
-  # multiple conflicting versions of bower ?
-  # relative paths inside 'less' ?
-  #python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
 
   cd "$srcdir/notebook-4.0.1"
   # needs node
   python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  # FS45999 use system mathjax
+  ln -s /usr/share/mathjax \
+  "$pkgdir/usr/lib/python3.4/site-packages/notebook/static/components/MathJax"
 
   cd "$srcdir/nbconvert-4.0.0"
   python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0



More information about the arch-commits mailing list