1 |
commit: 463c383d677499cf6cccf34861737a3d952202a5 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 6 01:15:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 6 01:15:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=463c383d |
7 |
|
8 |
dev-python/cython: add 0.29.25 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/cython/Manifest | 1 + |
13 |
dev-python/cython/cython-0.29.25.ebuild | 75 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 76 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index 864a35bfccf4..c1522094bffc 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST cython-0.29.21.gh.tar.gz 2088511 BLAKE2B 7a4ddabb65a519d3c71454ac8417438a3a9c46b47489c18e7c7e82ffcb5d5f2f0c5246d0b364f8317d374c53f0c83844c73c7d2ef6b9f75f10707aaf2931ce41 SHA512 2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679 |
22 |
DIST cython-0.29.23.gh.tar.gz 2093463 BLAKE2B c710b9bc9e05e0030dff3098857b349564fd167f7d9c47e2ef4e8897e072f67497b8ed3994f45135c21f8b2bf3a2cff016fec9a808b2bbe9712174dd0a6b1a3e SHA512 093b7a1d5c68f6e2d2b9b8adb9ac99e8967ddd0a66c0513a78e88bd55d96533dd8352b2478554fb53bf32a72d730967fb08ccb2eaa462da68f86891dceb4925a |
23 |
DIST cython-0.29.24.gh.tar.gz 2097245 BLAKE2B 9f5f2da0aed61d7fda2e14ea0669a2dd187cd053f3b82621342c7be29e26ff581b673a32e43bacd5c0df3e515f250eb23a64b1dae8911132fdca48175910a3dc SHA512 387a827f3cb7428248019744e3ed606a133d98ac882b83624d24ae0fdf8a8f2334978555d7d84e5cc4adaf715c541fef64e45bcbdda85ca33473c21f99360be8 |
24 |
+DIST cython-0.29.25.gh.tar.gz 2099536 BLAKE2B e07706662f860d8c807dc4a13660a05291eab9f33994a88639f565e9020c495215dbac9cbab69b7947ea82844a72706edfccb54f53dd80b5908ca703f30ee435 SHA512 6d1f0822eb6fb43372d42ebe3684df85ff430f58ff1f6d5774a2e1809d1f5ddc8827cee40cdc81bcb8b825cdf7b51262823a69ab4502fa28468cd1a1acab2283 |
25 |
|
26 |
diff --git a/dev-python/cython/cython-0.29.25.ebuild b/dev-python/cython/cython-0.29.25.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..0c107a31d2b0 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cython/cython-0.29.25.ebuild |
31 |
@@ -0,0 +1,75 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+inherit distutils-r1 toolchain-funcs elisp-common |
41 |
+ |
42 |
+DESCRIPTION="A Python to C compiler" |
43 |
+HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ |
44 |
+ https://github.com/cython/cython" |
45 |
+SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
50 |
+IUSE="emacs test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
55 |
+" |
56 |
+BDEPEND="${RDEPEND} |
57 |
+ test? ( |
58 |
+ $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ |
59 |
+ 'python3*') |
60 |
+ )" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" |
64 |
+ "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" |
65 |
+) |
66 |
+ |
67 |
+SITEFILE=50cython-gentoo.el |
68 |
+ |
69 |
+distutils_enable_sphinx docs |
70 |
+ |
71 |
+python_compile() { |
72 |
+ # Python gets confused when it is in sys.path before build. |
73 |
+ local -x PYTHONPATH= |
74 |
+ |
75 |
+ distutils-r1_python_compile |
76 |
+} |
77 |
+ |
78 |
+python_compile_all() { |
79 |
+ use emacs && elisp-compile Tools/cython-mode.el |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ tc-export CC |
84 |
+ # https://github.com/cython/cython/issues/1911 |
85 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
86 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests || |
87 |
+ die "Tests fail with ${EPYTHON}" |
88 |
+} |
89 |
+ |
90 |
+python_install_all() { |
91 |
+ local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
92 |
+ distutils-r1_python_install_all |
93 |
+ |
94 |
+ if use emacs; then |
95 |
+ elisp-install ${PN} Tools/cython-mode.* |
96 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ use emacs && elisp-site-regen |
102 |
+} |
103 |
+ |
104 |
+pkg_postrm() { |
105 |
+ use emacs && elisp-site-regen |
106 |
+} |