From: Andres Noetzli Date: Thu, 31 Mar 2022 16:24:33 +0000 (-0700) Subject: Remove support for Python 2.x (#8488) X-Git-Tag: cvc5-1.0.0~94 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e5aa4614ea55aa911dfeb78feabc17256ab223a;p=cvc5.git Remove support for Python 2.x (#8488) This removes support for Python 2.x. We haven't been testing it and there isn't a good reason to support it. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ab9c214..56e83b1c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,6 @@ cvc5_option(USE_EDITLINE "Use Editline for better interactive support") # > for options where we don't need to detect if set by user (default: OFF) option(USE_POLY "Use LibPoly for polynomial arithmetic") option(USE_COCOA "Use CoCoALib for further polynomial operations") -option(USE_PYTHON2 "Force Python 2 (deprecated)") # Custom install directories for dependencies # If no directory is provided by the user, we first check if the dependency was @@ -295,12 +294,7 @@ else() endif() endif() -if(USE_PYTHON2) - find_package(PythonInterp 2.7 REQUIRED) -else() - find_package(PythonInterp 3 REQUIRED) -endif() - +find_package(PythonInterp 3 REQUIRED) find_package(GMP 6.1 REQUIRED) if(ENABLE_ASAN) @@ -615,7 +609,6 @@ message("") print_config("Shared build " ${BUILD_SHARED_LIBS}) print_config("Python bindings " ${BUILD_BINDINGS_PYTHON}) print_config("Java bindings " ${BUILD_BINDINGS_JAVA}) -print_config("Python2 " ${USE_PYTHON2}) print_config("Interprocedural opt. " ${ENABLE_IPO}) message("") print_config("CryptoMiniSat " ${USE_CRYPTOMINISAT} FOUND_SYSTEM ${CryptoMiniSat_FOUND_SYSTEM}) diff --git a/configure.sh b/configure.sh index 673df59da..927ebb905 100755 --- a/configure.sh +++ b/configure.sh @@ -43,7 +43,6 @@ The following flags enable optional features (disable with --no-