Last active
September 30, 2017 10:54
-
-
Save flying-sheep/d6eea15f8a6075f988672eccdddf4bfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with_env() { | |
| env \ | |
| JUPYTER_DATA_DIR=/usr/share/jupyter \ | |
| JUPYTER_CONFIG_DIR=/etc/jupyter \ | |
| "$@" --user | |
| } | |
| post_install() { | |
| with_env jupyter serverextension enable --py jupyterlab | |
| } | |
| pre_remove() { | |
| with_env jupyter serverextension disable --py jupyterlab | |
| } | |
| pre_upgrade() { | |
| pre_remove | |
| } | |
| post_upgrade() { | |
| post_install | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Fabian Zaremba <[email protected]> | |
| pkgname=jupyterlab-git | |
| pkgver=0.6.0.r1827.g5325744bc | |
| pkgrel=1 | |
| pkgdesc="A pre-alpha Jupyter lab environment notebook server extension." | |
| url="http://jupyter.org" | |
| depends=('python' 'jupyter>=4.1.0-5') | |
| makedepends=('python3' 'npm' 'lerna') | |
| license=('BSD') | |
| conflicts=('jupyterlab') | |
| provides=('jupyterlab') | |
| arch=('any') | |
| install='jupyterlab-git.install' | |
| source=('git+https://github.com/jupyter/jupyterlab.git' | |
| 'jupyterlab-git.install') | |
| md5sums=(SKIP | |
| 029285c1de377ce8ca0031a1f0dfcbc0) | |
| pkgver() { | |
| cd "$srcdir/jupyterlab" | |
| git describe --long | sed 's/.*@//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
| } | |
| build() { | |
| cd "$srcdir/jupyterlab" | |
| npm install | |
| npm run build:main | |
| python setup.py build | |
| } | |
| package() { | |
| cd "$srcdir/jupyterlab" | |
| python setup.py install --root="$pkgdir" --optimize=1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment