# HG changeset patch
# User Nick Wellnhofer <wellnhofer@aevum.de>
# Date 1662467617 -7200
#      Tue Sep 06 14:33:37 2022 +0200
# Node ID 68c239cc709f976b577f871927374636f2600b22
# Parent  39f04dd7e65e1d43fdc796dc03cb9bbc426af92b
cmake: Fix Python installation

Don't install into ${Python_SITEARCH} for now.

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,7 +34,9 @@
 	check_include_files(unistd.h HAVE_UNISTD_H)
 	check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
 	find_package(Python COMPONENTS Interpreter Development REQUIRED)
-	set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+        #set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+	set(LIBXSLT_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/python"
+	    CACHE PATH "Python bindings install directory")
 endif()
 
 if(LIBXSLT_WITH_THREADS)