depot/third_party/nixpkgs/pkgs/development/libraries/libpam-wrapper/python.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

38 lines
1.4 KiB
Diff

diff --git a/cmake/Modules/FindPythonSiteLibs.cmake b/cmake/Modules/FindPythonSiteLibs.cmake
index ab2931e..08e2c98 100644
--- a/cmake/Modules/FindPythonSiteLibs.cmake
+++ b/cmake/Modules/FindPythonSiteLibs.cmake
@@ -27,30 +27,9 @@
if (PYTHON_EXECUTABLE)
### PYTHON_SITELIB
- execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, prefix=''))"
- OUTPUT_VARIABLE
- PYTHON_SITELIB_OUTPUT_VARIABLE
- RESULT_VARIABLE
- PYTHON_SITELIB_RESULT_VARIABLE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if (NOT PYTHON_SITELIB_RESULT_VARIABLE)
- file(TO_CMAKE_PATH "${PYTHON_SITELIB_OUTPUT_VARIABLE}" PYTHON_SITELIB)
- endif ()
+ file(TO_CMAKE_PATH "@siteDir@" PYTHON_SITELIB)
+
### PYTHON_SITEINC
- execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc(plat_specific=True, prefix=''))"
- OUTPUT_VARIABLE
- PYTHON_SITEINC_OUTPUT_VARIABLE
- RESULT_VARIABLE
- PYTHON_SITEINC_RESULT_VARIABLE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if (NOT PYTHON_SITEINC_RESULT_VARIABLE)
- file(TO_CMAKE_PATH "${PYTHON_SITEINC_OUTPUT_VARIABLE}" PYTHON_SITEINC)
- endif ()
+ file(TO_CMAKE_PATH "@includeDir@" PYTHON_SITEINC)
endif (PYTHON_EXECUTABLE)