Provide foreign python package path is allowed

This commit is contained in:
Guilhem Lavaux 2018-09-30 21:29:35 +02:00
parent 6ab5df28f3
commit 857aa51bbd

View File

@ -88,11 +88,13 @@ message(STATUS "User python site: ${USER_PYTHON_SITE_PACKAGES}")
OPTION(INSTALL_PYTHON_LOCAL OFF) OPTION(INSTALL_PYTHON_LOCAL OFF)
IF (NOT PYTHON_SITE_PACKAGES)
IF (NOT INSTALL_PYTHON_LOCAL) IF (NOT INSTALL_PYTHON_LOCAL)
SET(PYTHON_SITE_PACKAGES ${SYSTEM_PYTHON_SITE_PACKAGES}) SET(PYTHON_SITE_PACKAGES ${SYSTEM_PYTHON_SITE_PACKAGES})
ELSE (NOT INSTALL_PYTHON_LOCAL) ELSE (NOT INSTALL_PYTHON_LOCAL)
SET(PYTHON_SITE_PACKAGES ${USER_PYTHON_SITE_PACKAGES}) SET(PYTHON_SITE_PACKAGES ${USER_PYTHON_SITE_PACKAGES})
ENDIF(NOT INSTALL_PYTHON_LOCAL) ENDIF(NOT INSTALL_PYTHON_LOCAL)
ENDIF()
cmessage(STATUS "Python install location: ${PYTHON_SITE_PACKAGES}") cmessage(STATUS "Python install location: ${PYTHON_SITE_PACKAGES}")