summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-07-13 21:07:45 +0200
committerGitHub <noreply@github.com>2021-07-13 19:07:45 +0000
commit3c5287c4588d1e83426875c486ea522be971c1f2 (patch)
tree9cbfb2a389d9c40343a952a641e536e8d33b61d6
parent88be996d45c7a980e678252d39b7610ccba5bf32 (diff)
downloadspack-3c5287c4588d1e83426875c486ea522be971c1f2.tar.gz
spack-3c5287c4588d1e83426875c486ea522be971c1f2.tar.bz2
spack-3c5287c4588d1e83426875c486ea522be971c1f2.tar.xz
spack-3c5287c4588d1e83426875c486ea522be971c1f2.zip
py-jupyterlab: fix startup and add 3.0.16 (#24780)
jupyterlab was looking for its application directory inside the python prefix instead its own one. This was fixed by setting the according environment variable.
-rw-r--r--var/spack/repos/builtin/packages/py-jupyterlab/package.py31
1 files changed, 27 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-jupyterlab/package.py b/var/spack/repos/builtin/packages/py-jupyterlab/package.py
index 69fbc175ca..e431f17693 100644
--- a/var/spack/repos/builtin/packages/py-jupyterlab/package.py
+++ b/var/spack/repos/builtin/packages/py-jupyterlab/package.py
@@ -8,15 +8,38 @@ class PyJupyterlab(PythonPackage):
"""JupyterLab is the next-generation web-based user interface
for Project Jupyter."""
- homepage = "https://jupyterlab.readthedocs.io/"
+ homepage = "https://github.com/jupyterlab/jupyterlab"
pypi = "jupyterlab/jupyterlab-2.2.7.tar.gz"
+ version('3.0.16', sha256='7ad4fbe1f6d38255869410fd151a8b15692a663ca97c0a8146b3f5c40e275c23')
version('2.2.7', sha256='a72ffd0d919cba03a5ef8422bc92c3332a957ff97b0490494209c83ad93826da')
version('2.1.0', sha256='8c239aababf5baa0b3d36e375fddeb9fd96f3a9a24a8cda098d6a414f5bbdc81')
+ depends_on('python@3.6:', when='@3:', type=('build', 'run'))
depends_on('python@3.5:', type=('build', 'run'))
depends_on('py-setuptools', type=('build', 'run'))
- depends_on('py-notebook@4.3.1:', type=('build', 'run'))
- depends_on('py-tornado@:5,6.0.3:', type=('build', 'run'))
- depends_on('py-jupyterlab-server@1.1.5:1.999', type=('build', 'run'))
+ depends_on('py-jupyter-packaging@0.9:1.999', when='@3.0.15:', type='build')
+ depends_on('py-jupyter-packaging@0.7.3:0.7.999', when='@3.0.0:3.0.14', type='build')
+ # dependency on py-jinja2@2.1 seems to be a migration issue from the switch
+ # to setup.cfg in 3.0.15, leave it a 2.10
depends_on('py-jinja2@2.10:', type=('build', 'run'))
+
+ # @3:
+ depends_on('py-ipython', when='@3:', type=('build', 'run'))
+ depends_on('py-packaging', when='@3:', type=('build', 'run'))
+ depends_on('py-tornado@6.1.0:', when='@3:', type=('build', 'run'))
+ depends_on('py-jupyter-core', when='@3:', type=('build', 'run'))
+ depends_on('py-jupyterlab-server@2.3:2.999', when='@3.0.9:', type=('build', 'run'))
+ depends_on('py-jupyterlab-server@2.0:2.999', when='@3.0.0:3.0.8', type=('build', 'run'))
+ depends_on('py-jupyter-server@1.4:1.999', when='@3.0.9:', type=('build', 'run'))
+ depends_on('py-jupyter-server@1.2:1.999', when='@3.0.3:3.0.8', type=('build', 'run'))
+ depends_on('py-jupyter-server@1.1:1.999', when='@3.0.0:3.0.2', type=('build', 'run'))
+ depends_on('py-nbclassic@0.2.0:0.999', when='@3:', type=('build', 'run'))
+
+ # @:3
+ depends_on('py-notebook@4.3.1:', when='@:2.99', type=('build', 'run'))
+ depends_on('py-tornado@:5,6.0.3:', when='@:2.99', type=('build', 'run'))
+ depends_on('py-jupyterlab-server@1.1.5:1.999', when='@:2.99', type=('build', 'run'))
+
+ def setup_run_environment(self, env):
+ env.set('JUPYTERLAB_DIR', self.prefix.share.jupyter.lab)