Skip to content

Commit

Permalink
Fix installation with python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Nov 2, 2021
1 parent a59c87d commit f824ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/python/CMakeLists.txt
Expand Up @@ -135,7 +135,7 @@ endif()
#
set(PYTHON_PACKAGE_INSTALL_DIR)
if (UNIX OR CYGWIN)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys;import platform; sys.stdout.write(platform.python_version()[:3])"
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys;import platform; sys.stdout.write(platform.python_version().rsplit('.', 1)[0])"
OUTPUT_VARIABLE PYTHON_VERSION)
set(PYTHON_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/site-packages)
else()
Expand Down

0 comments on commit f824ecb

Please sign in to comment.