1 |
commit: 451cf51fa8d6fa1a6338f5f982ad8c2a3b15aa15 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 15 06:33:30 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 15 09:03:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=451cf51f |
7 |
|
8 |
dev-python/cython: Bump to 0.29.23 |
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.23.ebuild | 76 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index 434af042111..7e77cd41b1f 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST cython-0.29.21.gh.tar.gz 2088511 BLAKE2B 7a4ddabb65a519d3c71454ac8417438a3a9c46b47489c18e7c7e82ffcb5d5f2f0c5246d0b364f8317d374c53f0c83844c73c7d2ef6b9f75f10707aaf2931ce41 SHA512 2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679 |
22 |
DIST cython-0.29.22.gh.tar.gz 2091955 BLAKE2B 8225fa6073d43de1e44e8cd22d52f9bde5d3b6e6e766c74d5ef18d77b57c0e1b22a21cae5b133b0b22f7207aa51dc0e76f1073db977190d42c2b55cc2d7e148e SHA512 b7f22112678f159bf1d0ad5fe4f7c103e96f240bab4d9dc07edd7c2f66a9887b9af72b32f1d5886361b48d428bc2b9499d3c5b59ce5af1068f20a26549783dd6 |
23 |
+DIST cython-0.29.23.gh.tar.gz 2093463 BLAKE2B c710b9bc9e05e0030dff3098857b349564fd167f7d9c47e2ef4e8897e072f67497b8ed3994f45135c21f8b2bf3a2cff016fec9a808b2bbe9712174dd0a6b1a3e SHA512 093b7a1d5c68f6e2d2b9b8adb9ac99e8967ddd0a66c0513a78e88bd55d96533dd8352b2478554fb53bf32a72d730967fb08ccb2eaa462da68f86891dceb4925a |
24 |
|
25 |
diff --git a/dev-python/cython/cython-0.29.23.ebuild b/dev-python/cython/cython-0.29.23.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d2fe1b9af4e |
28 |
--- /dev/null |
29 |
+++ b/dev-python/cython/cython-0.29.23.ebuild |
30 |
@@ -0,0 +1,76 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{7..9} 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 ~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.14-sphinx-update.patch" |
64 |
+ "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.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 |
+} |