From 14cb560ed4140171641722af16491ef2e19053ae Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Mon, 3 Jun 2024 22:46:17 +0200 Subject: dev-libs/fastText Add python 3.12 support --- dev-libs/fastText/fastText-0.9.2-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev-libs/fastText/fastText-0.9.2-r1.ebuild') diff --git a/dev-libs/fastText/fastText-0.9.2-r1.ebuild b/dev-libs/fastText/fastText-0.9.2-r1.ebuild index 4198ad6..969ebd6 100644 --- a/dev-libs/fastText/fastText-0.9.2-r1.ebuild +++ b/dev-libs/fastText/fastText-0.9.2-r1.ebuild @@ -4,8 +4,9 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit cmake distutils-r1 @@ -38,6 +39,8 @@ src_prepare() { CMakeLists.txt || die "sed failed for CMakeLists.txt" sed -i "/extra_compile_args=/,+1d" setup.py \ || die "sed failed for setup.py" + sed -r -e 's|np.array\(([^,]*),\s*copy=False\)|np.asarray(\1)|g' -i python/fasttext_module/fasttext/FastText.py \ + || die "sed failed for FastText.py" } python_prepare_all() { -- cgit v1.2.3