mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
Check if python < 2.7, and build argparse if necessary
This commit is contained in:
parent
0f53c385b8
commit
15f03654d7
1 changed files with 7 additions and 1 deletions
6
external/external_python_build.cmake
vendored
6
external/external_python_build.cmake
vendored
|
@ -3,7 +3,13 @@ INCLUDE(FindPythonInterp)
|
|||
SET(INTERNAL_NETCDF4_PYTHON ON)
|
||||
SET(INTERNAL_CYTHON ON)
|
||||
SET(INTERNAL_HEALPY ON)
|
||||
|
||||
IF (PYTHON_VERSION_STRING VERSION_LESS 2.7)
|
||||
MESSAGE(STATUS "Python version is less than 2.7, argparse is needed.")
|
||||
SET(INTERNAL_ARGPARSE ON)
|
||||
ELSE (PYTHON_VERSION_STRING VERSION_LESS 2.7)
|
||||
MESSAGE(STATUS "Python version is greater than 2.7, argparse is already bundled.")
|
||||
ENDIF (PYTHON_VERSION_STRING VERSION_LESS 2.7)
|
||||
|
||||
IF(INTERNAL_CYTHON)
|
||||
SET(CYTHON_URL "http://cython.org/release/Cython-0.17.1.tar.gz" CACHE STRING "URL to download Cython from")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue