# HG changeset patch
# User Nick Wellnhofer <wellnhofer@aevum.de>
# Date 1662463258 -7200
#      Tue Sep 06 13:20:58 2022 +0200
# Node ID 39f04dd7e65e1d43fdc796dc03cb9bbc426af92b
# Parent  5bd4a7259044c0a98fa43886d4017e4129355e08
cmake: Don't check for Python 2

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,14 +33,7 @@
 if(LIBXSLT_WITH_PYTHON)
 	check_include_files(unistd.h HAVE_UNISTD_H)
 	check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
-	if(HAVE_UNISTD_H AND HAVE_F_GETFL)
-		find_package(Python COMPONENTS Interpreter Development REQUIRED)
-	else()
-		find_package(Python2 COMPONENTS Interpreter Development REQUIRED)
-		add_library(Python::Python ALIAS Python2::Python)
-		set(Python_EXECUTABLE ${Python2_EXECUTABLE})
-		set(Python_SITEARCH ${Python2_SITEARCH})
-	endif()
+	find_package(Python COMPONENTS Interpreter Development REQUIRED)
 	set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
 endif()