1 |
commit: 56c4f2fe360c980a0c25b3c12fa2e88242290f48 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 05:41:04 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 05:58:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56c4f2fe |
7 |
|
8 |
dev-python/cython: Bump to 0.29.30 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cython/Manifest | 1 + |
13 |
dev-python/cython/cython-0.29.30.ebuild | 90 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 91 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index 123481aedf64..6b6b2f7893f3 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST cython-0.29.28.gh.tar.gz 2101301 BLAKE2B 980c04545e935deb4b4b1653f167dcbc94b8e2b24bc8897b5cc996dfca977645f7475c32aa973251ffcbbb31e725e27693af61ceaf66f2332c9525b02653dc76 SHA512 52490d0b5355e13cbe586830f763173d7556cf3d79d79192ca75138b1190e7a4c1f3feeb0568349802ef3b97300c3805f54eef5ffd73a5180d68f023ac2a44cd |
22 |
DIST cython-0.29.29.gh.tar.gz 2105839 BLAKE2B ab7879ce70733cfd77b7aa42a2de717bfc1b9bf933754bfecc6548ee1d097ce4102daaee98a1902d957b50f18400b5ba58d6517edfe43c9332c5bb3ec45f9665 SHA512 db14813f6191445cc3d497d3c7d76cc8b55fbe8e6857d800f5e05052fe4b05e9c2a2e597bdc1891254a62ecef203780c1c495e8d28e831072ddd46992bfe6df4 |
23 |
+DIST cython-0.29.30.gh.tar.gz 2105561 BLAKE2B c995bc710d2c397b8d6e4edee0f989e43969a51efb29b83643149d8c4110ae0331a35b9cc2ec7a45a43fea19ab8d63f1ef934f92d451c62d057e0e04ec79a871 SHA512 f6b07adfa1ebe9d52dfb72857ffd40b35d8777914299de101c7b96ee2d64cdd85ac0374ed41b382881b1f3ce535a9af9419dfabee9a4781a3f818125292627d4 |
24 |
DIST cython-74073417c4f7e616af0a139a55f790f1ec7fe728.gh.tar.gz 2106765 BLAKE2B c2686a1d49fd1b522dcdf89f16c52fbb34595aed72e5626c8d3697ecc9318751d108999db443cfefe08334155ab59d230fcbd8e74715e185a161399abad6ae35 SHA512 2454a364fdd33f0090ba052a0bfa0ffb464ef750253a91c20a63c4db0b513f743870e7b9fafd844b0bf1a6b66b9b639f830d3a8c2f64abac6e197e2ff2279a59 |
25 |
|
26 |
diff --git a/dev-python/cython/cython-0.29.30.ebuild b/dev-python/cython/cython-0.29.30.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..666f40d9818e |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cython/cython-0.29.30.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit distutils-r1 toolchain-funcs elisp-common |
42 |
+ |
43 |
+DESCRIPTION="A Python to C compiler" |
44 |
+HOMEPAGE=" |
45 |
+ https://cython.org/ |
46 |
+ https://github.com/cython/cython/ |
47 |
+ https://pypi.org/project/Cython/ |
48 |
+" |
49 |
+SRC_URI=" |
50 |
+ https://github.com/cython/cython/archive/${PV}.tar.gz |
51 |
+ -> ${P}.gh.tar.gz |
52 |
+" |
53 |
+ |
54 |
+LICENSE="Apache-2.0" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
57 |
+IUSE="emacs test" |
58 |
+RESTRICT="!test? ( test )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ ${RDEPEND} |
65 |
+ test? ( |
66 |
+ $(python_gen_cond_dep ' |
67 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
68 |
+ ' python3_{8..10}) |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" |
74 |
+ "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" |
75 |
+) |
76 |
+ |
77 |
+SITEFILE=50cython-gentoo.el |
78 |
+ |
79 |
+distutils_enable_sphinx docs |
80 |
+ |
81 |
+python_compile() { |
82 |
+ # Python gets confused when it is in sys.path before build. |
83 |
+ local -x PYTHONPATH= |
84 |
+ |
85 |
+ distutils-r1_python_compile |
86 |
+} |
87 |
+ |
88 |
+python_compile_all() { |
89 |
+ use emacs && elisp-compile Tools/cython-mode.el |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ if has "${EPYTHON}" pypy3 python3.11; then |
94 |
+ einfo "Skipping tests on ${EPYTHON} (xfail)" |
95 |
+ return |
96 |
+ fi |
97 |
+ |
98 |
+ tc-export CC |
99 |
+ # https://github.com/cython/cython/issues/1911 |
100 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
101 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests || |
102 |
+ die "Tests fail with ${EPYTHON}" |
103 |
+} |
104 |
+ |
105 |
+python_install_all() { |
106 |
+ local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
107 |
+ distutils-r1_python_install_all |
108 |
+ |
109 |
+ if use emacs; then |
110 |
+ elisp-install ${PN} Tools/cython-mode.* |
111 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ use emacs && elisp-site-regen |
117 |
+} |
118 |
+ |
119 |
+pkg_postrm() { |
120 |
+ use emacs && elisp-site-regen |
121 |
+} |