From cb935802b385ee41d1d897fb6994682222686aae Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 27 Mar 2024 12:54:28 +0100
Subject: [PATCH] nose: install via pip, solves 2to3 issue

---
 pyexternals/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pyexternals/CMakeLists.txt b/pyexternals/CMakeLists.txt
index 972e400eb0..c192da6ca0 100644
--- a/pyexternals/CMakeLists.txt
+++ b/pyexternals/CMakeLists.txt
@@ -700,10 +700,14 @@ LCGPackage_Add(
   CONFIGURE_COMMAND <VOID>
   BUILD_COMMAND <VOID>
   INSTALL_COMMAND ${MakeSitePackagesDir}
+    IF <VERSION> VERSION_GREATER_EQUAL 1.6.3 THEN
+          COMMAND ${PYTHON} -m pip install ${PySetupOptions} --no-deps .
+    ELSE
           COMMAND ${PYTHON} setup.py install ${PySetupOptions}
+    ENDIF
           COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR>
   BUILD_IN_SOURCE 1
-  DEPENDS Python setuptools IF <VERSION> VERSION_GREATER_EQUAL 1.6.3 THEN coverage numpy six ENDIF
+  DEPENDS Python setuptools IF <VERSION> VERSION_GREATER_EQUAL 1.6.3 THEN coverage numpy six pip ENDIF
 )
 
 #---funcsigs---------------------------------------------------------------------------------------------------
-- 
GitLab