Skip to content

Commit

Permalink
biology/py-libsedml: fix install with python 3.10+
Browse files Browse the repository at this point in the history
Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Nov 2, 2021
1 parent f3f7446 commit 38ce78e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion biology/py-libsedml/files/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
--- CMakeLists.txt.orig 2021-09-19 17:41:37 UTC
--- CMakeLists.txt.orig 2021-09-07 06:43:55 UTC
+++ CMakeLists.txt
@@ -49,6 +49,7 @@ ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libsedml_wrap.cpp
Expand All @@ -20,3 +20,12 @@
endif()

#
@@ -135,7 +136,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()

0 comments on commit 38ce78e

Please sign in to comment.