Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dnf4 / fix-python-install-dir.patch
blob07b68242d8fc3127508839ec09c2139ff10fb9f0
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 4aee99fb..0bb28897 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -19,7 +19,7 @@ ELSE ()
6 MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
7 ENDIF()
9 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
10 +SET(PYTHON_INSTALL_DIR "@PYTHON_INSTALL_DIR@")
11 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
13 ADD_SUBDIRECTORY (dnf)