arch-pkgs/libgraphqlparser/use_python3.patch
George Rawlinson cbeadc8aaa
upgpkg: libgraphqlparser 0.7.0-3
Replace build dependency: python2 with python3.
2021-12-04 03:46:08 +00:00

14 lines
358 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,10 +7,7 @@ INCLUDE(version)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
-FIND_PACKAGE(PythonInterp 2 REQUIRED)
-IF (NOT PYTHON_VERSION_MAJOR EQUAL 2)
- MESSAGE(FATAL_ERROR "Python 2 is required.")
-ENDIF()
+FIND_PACKAGE(PythonInterp 3 REQUIRED)
FIND_PROGRAM(CTYPESGEN_FOUND ctypesgen.py)