Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2021 18:09:29 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d3c69717c0a2 - main - biology/py-libnuml: fix install with python 3.10+
Message-ID:  <202111021809.1A2I9TMa025917@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d3c69717c0a20c231d676f9a249e7fb35d5c22f2

commit d3c69717c0a20c231d676f9a249e7fb35d5c22f2
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-02 18:08:06 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-02 18:08:32 +0000

    biology/py-libnuml: fix install with python 3.10+
    
    Approved by:    portmgr blanket
---
 biology/py-libnuml/files/patch-CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/biology/py-libnuml/files/patch-CMakeLists.txt b/biology/py-libnuml/files/patch-CMakeLists.txt
index 12167a58575d..4c2147149b24 100644
--- a/biology/py-libnuml/files/patch-CMakeLists.txt
+++ b/biology/py-libnuml/files/patch-CMakeLists.txt
@@ -20,3 +20,12 @@
  endif()
  
  
+@@ -153,7 +154,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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111021809.1A2I9TMa025917>