* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/mdtraj/files/, sci-chemistry/mdtraj/
@ 2023-05-05 14:25 Pacho Ramos
0 siblings, 0 replies; only message in thread
From: Pacho Ramos @ 2023-05-05 14:25 UTC (permalink / raw
To: gentoo-commits
commit: a51915fb410cf715cd1610b3539830321e6867d2
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Fri May 5 14:25:18 2023 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Fri May 5 14:25:42 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a51915fb
sci-chemistry/mdtraj: enable py3.11
Closes: https://bugs.gentoo.org/897198
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
sci-chemistry/mdtraj/files/mdtraj-1.9.7-python311.patch | 16 ++++++++++++++++
sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild | 6 +++++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/sci-chemistry/mdtraj/files/mdtraj-1.9.7-python311.patch b/sci-chemistry/mdtraj/files/mdtraj-1.9.7-python311.patch
new file mode 100644
index 000000000000..303c819aaee4
--- /dev/null
+++ b/sci-chemistry/mdtraj/files/mdtraj-1.9.7-python311.patch
@@ -0,0 +1,16 @@
+Index: mdtraj/setup.py
+===================================================================
+--- mdtraj.orig/setup.py 2023-01-18 15:26:51.424826255 +0100
++++ mdtraj/setup.py 2023-01-18 15:26:51.420826223 +0100
+@@ -298,6 +298,10 @@
+
+ for e in extensions:
+ e.include_dirs.append(np.get_include())
+- metadata['ext_modules'] = cythonize(extensions, language_level=sys.version_info[0])
++ metadata['ext_modules'] = cythonize(
++ extensions,
++ language_level=sys.version_info[0],
++ force=True,
++ )
+
+ setup(**metadata)
diff --git a/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild b/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild
index 997dacaa72dd..f1d744000147 100644
--- a/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild
+++ b/sci-chemistry/mdtraj/mdtraj-1.9.7.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 pypi
@@ -34,6 +34,10 @@ DEPEND="${RDEPEND}
distutils_enable_tests --install pytest
+PATCHES=(
+ "${FILESDIR}/${P}-python311.patch"
+)
+
python_prepare_all() {
sed -e "s:re.match('build.*(mdtraj.*)', output_dir).group(1):'.':g" \
-i basesetup.py || die
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-05 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 14:25 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/mdtraj/files/, sci-chemistry/mdtraj/ Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox