diff options
author | Ian Frosst <ianjfrosst@gmail.com> | 2021-12-14 01:40:17 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2021-12-14 13:07:43 +0300 |
commit | e2dffe12a796409cd2a4ca290e836cd6e4ead53f (patch) | |
tree | 05b9894fcd9329e2b6e7f5fe539d684930a2ca70 /CMakeLists.txt | |
parent | 67f44e1c3e9d72b834176379a57bfc4220c7ead0 (diff) |
remove dependency on Python distutils
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 35a7ae3..9a4ecdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,12 +40,6 @@ if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) endif() find_package(Python REQUIRED COMPONENTS Interpreter) -execute_process( - COMMAND ${Python_EXECUTABLE} -c - "from distutils import sysconfig; print(sysconfig.get_python_lib(prefix=''))" - OUTPUT_VARIABLE PYTHON_INSTDIR - OUTPUT_STRIP_TRAILING_WHITESPACE -) if(nanopb_BUILD_GENERATOR) set(generator_protos nanopb) @@ -62,13 +56,13 @@ if(nanopb_BUILD_GENERATOR) install( FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file} ${generator_proto_file} - DESTINATION ${PYTHON_INSTDIR}/proto/ + DESTINATION ${Python_SITELIB}/proto/ ) endforeach() endif() install(FILES generator/proto/_utils.py - DESTINATION ${PYTHON_INSTDIR}/proto/) + DESTINATION ${Python_SITELIB}/proto/) if(WIN32) install( |