diff --git a/pyexternals/CMakeLists.txt b/pyexternals/CMakeLists.txt index 972e400eb0f7942be2149c692346c7ff979617c4..c192da6ca060b4e057c5fc84262fd5786cd66277 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---------------------------------------------------------------------------------------------------