commit: 4d037264cefa516031390064e1dbc7f410692a3a
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 12 11:13:19 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 11:13:54 2022 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4d037264
dev-python/llvmlite: enable py3.11
tests pass
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
.../llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch | 13 +++++++++++++
dev-python/llvmlite/llvmlite-0.39.1.ebuild | 8 ++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch
b/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch
new file mode 100644
index 000000000..d35979ebc
--- /dev/null
+++ b/dev-python/llvmlite/files/llvmlite-0.39.1-allow-py3.11.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 02b1604..a45c9b8 100644
+--- a/setup.py
++++ b/setup.py
+@@ -33,7 +33,7 @@ except ImportError:
+
+
+ min_python_version = "3.7"
+-max_python_version = "3.11" # exclusive
++max_python_version = "3.12" # exclusive
+
+
+ def _guard_py_ver():
diff --git a/dev-python/llvmlite/llvmlite-0.39.1.ebuild
b/dev-python/llvmlite/llvmlite-0.39.1.ebuild
index a2c3a6750..fdc2cf823 100644
--- a/dev-python/llvmlite/llvmlite-0.39.1.ebuild
+++ b/dev-python/llvmlite/llvmlite-0.39.1.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 llvm
DESCRIPTION="Python wrapper around the llvm C++ library"
@@ -24,7 +25,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/${P}-llvm12.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-llvm12.patch"
+ "${FILESDIR}/${P}-allow-py3.11.patch"
+)
src_prepare() {
sed -i -e '/max_python/s:3\.10:3.11:' setup.py || die