From 7bd82d8491af73e77ebe0e481ef137ad9f0cb27a Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Tue, 27 Aug 2024 10:14:16 +0200
Subject: [PATCH] jupyterlab_rise: add package, add note about deprecated
 package

---
 cmake/toolchain/heptools-dev-base.cmake |  2 ++
 pyexternals/CMakeLists.txt              | 13 +++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/cmake/toolchain/heptools-dev-base.cmake b/cmake/toolchain/heptools-dev-base.cmake
index 346eca2b00..8b041ca43d 100644
--- a/cmake/toolchain/heptools-dev-base.cmake
+++ b/cmake/toolchain/heptools-dev-base.cmake
@@ -378,6 +378,7 @@ LCG_external_package(jupyter_nbextensions_configurator 0.4.1
 LCG_external_package(jupyter_packaging 0.12.3                                   )
 LCG_external_package(jupyterlab_pygments  0.1.2                                 )
 LCG_external_package(jupyterlab        3.0.17                                   )
+LCG_external_package(jupyterlab_rise   0.3.0                                    )
 LCG_external_package(jupyterlab_server 2.6.1                                    )
 LCG_external_package(jupyter_server    1.10.2                                   )
 LCG_external_package(keras             3.3.3                                    )
@@ -720,6 +721,7 @@ LCG_external_package(requests_unixsocket 0.2.0
 LCG_external_package(retry             0.9.2                                    )
 LCG_external_package(retrying          1.3.3                                    )
 LCG_external_package(rich              13.7.1                                   )
+#this package (rise) is for jupyter, jupyterlab_rise is its replacement
 LCG_external_package(rise              5.5.0                                    )
 # Removed after decision in LIM, 21/7/20 (GGa)
 # LCG_external_package(rpy2              3.0.4                                    )
diff --git a/pyexternals/CMakeLists.txt b/pyexternals/CMakeLists.txt
index 26620ab5a4..5293cde3ed 100644
--- a/pyexternals/CMakeLists.txt
+++ b/pyexternals/CMakeLists.txt
@@ -8662,6 +8662,19 @@ LCGPackage_Add(
   DEPENDS Python setuptools notebook jupyter_core ipython_genutils traitlets decorator tornado beautifulsoup4
 )
 
+#---jupyterlab_rise------------------------------------------------------------------------------------------------------------
+LCGPackage_Add(
+  jupyterlab_rise
+  URL ${GenURL}/jupyterlab_rise-<VERSION>.tar.gz
+  CONFIGURE_COMMAND <VOID>
+  BUILD_COMMAND <VOID>
+  INSTALL_COMMAND ${MakeSitePackagesDir}
+          COMMAND ${PYTHON} -m pip install ${PySetupOptions} --no-deps .
+          COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
+  BUILD_IN_SOURCE 1
+  DEPENDS Python pip jupyterlab
+)
+
 #---python_box------------------------------------------------------------------------------------------
 LCGPackage_Add(
   python_box
-- 
GitLab