Require Python 3.7 for gmxapi in GROMACS 2022
authorM. Eric Irrgang <mei2n@virginia.edu>
Thu, 24 Jun 2021 11:32:18 +0000 (11:32 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 24 Jun 2021 11:32:18 +0000 (11:32 +0000)
cmake/gmxPythonDiscovery.cmake
python_packaging/src/setup.py

index c55a7f0575264cd9429d3ef95d5308f2c76fcb8e..b482a8bdf0644044534aa66e22dc85ee9cdc06d3 100644 (file)
@@ -53,15 +53,11 @@ if(NOT Python3_FIND_VIRTUALENV)
     # we want to preferentially discover user-space software.
     set(Python3_FIND_VIRTUALENV FIRST)
 endif()
-if(GMX_PYTHON_PACKAGE)
-    find_package(Python3 3.6 COMPONENTS Interpreter Development)
-    if (NOT Python3_FOUND OR NOT Python3_Development_FOUND)
-        message(FATAL_ERROR "Could not locate Python development requirements. \
-                Provide appropriate CMake hints or set GMX_PYTHON_PACKAGE=OFF")
-    endif ()
-else()
-    find_package(Python3 3.6 COMPONENTS Interpreter)
-endif()
+find_package(Python3 3.7 COMPONENTS Interpreter Development)
+if (GMX_PYTHON_PACKAGE AND (NOT Python3_FOUND OR NOT Python3_Development_FOUND))
+    message(FATAL_ERROR "Could not locate Python development requirements. \
+            Provide appropriate CMake hints or set GMX_PYTHON_PACKAGE=OFF")
+endif ()
 
 # Provide hints for other Python detection that may occur later.
 #
index 7ec8697061048710ad4ffc682a6fc0d11123f61d..5a66469331aa39b671ccb6fecb5ce047312490ff 100644 (file)
@@ -161,8 +161,8 @@ setup(
     name='gmxapi',
 
     # TODO: single-source version information (currently repeated in gmxapi/version.py and CMakeLists.txt)
-    version='0.3.0a1',
-    python_requires='>=3.6',
+    version='0.3.0a2',
+    python_requires='>=3.7',
     install_requires=['networkx>=2.0',
                       'numpy>=1'],