mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 07:11:12 +00:00
Skip setuptools installation if sufficienty recent
This commit is contained in:
parent
003bc39d4a
commit
81ada3d99a
1 changed files with 12 additions and 0 deletions
12
external/external_python_build.cmake
vendored
12
external/external_python_build.cmake
vendored
|
@ -7,6 +7,18 @@ SET(INTERNAL_SETUPTOOLS ON)
|
|||
SET(INTERNAL_SCIPY ON)
|
||||
SET(INTERNAL_KDTREE_SCIPY ON)
|
||||
|
||||
IF (INTERNAL_SETUPTOOLS)
|
||||
execute_process(
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c "import setuptools; print(setuptools.__version__);"
|
||||
RESULT_VARIABLE RET_VALUE
|
||||
OUTPUT_VARIABLE SETUPTOOLS_VERSION
|
||||
)
|
||||
IF (SETUPTOOLS_VERSION VERSION_GREATER 0.7)
|
||||
message(STATUS "Setuptools recent. Not building it.")
|
||||
SET(INTERNAL_SETUPTOOLS OFF)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF (PYTHON_VERSION_STRING VERSION_LESS 2.7)
|
||||
MESSAGE(STATUS "Python version is less than 2.7, argparse is needed.")
|
||||
SET(INTERNAL_ARGPARSE ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue