1 |
commit: 24a796d712147199dded253bc19115ff94b6ead0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 30 11:23:11 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 30 11:23:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24a796d7 |
7 |
|
8 |
dev-python/cython: Bump to 0.29.9 |
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.9.ebuild | 86 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 87 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index 93d08db8101..09772695146 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1 |
21 |
DIST Cython-0.29.5.tar.gz 2045488 BLAKE2B ca809728115865b7d28100943b358d8f5236382e5ae5a43d557620c3bd856407a9f52b756fc910564a6c041d64b1439d60776c90c6970614f74ee2d03f94665f SHA512 4bbf54b248b9a08b9118d751a6bb5dbb81ae7a8238c8a3124d94bf7be67f15b68820e6ce5470903fb5d5ff5c3c213e1580f1c57a8cda33b356263f9ab46e8851 |
22 |
DIST Cython-0.29.6.tar.gz 2047021 BLAKE2B 32fe6697ba407a75dad79f08fd2e33ba11b083c65f69e09cd269c8a9f445d183a8cf36794fc8b2abb5e98b9626f0c62a099367359634833f36273c7681835572 SHA512 bb8095b438a7d2567b8b831628fbb32c02299c866e41113da62fb5a5d4982dc0df947a9f723a82c52086806435d8f3518e78a803166149d476f81e042a12494e |
23 |
DIST Cython-0.29.7.tar.gz 2047944 BLAKE2B 79a2dbbbeef2c87e523d1222c1e3b62a63273644a0295a08fed3909ef01f2167baf15c0344a64ec168820e21c5c99b0accc083c8dfcaca7f1c0cb8c4b23677cc SHA512 1c2fd2185d65445318118d917ff6f8b4b958b0a036bc3ce1587dcb8fa94ccc750901cece27e4d0d39c53db68c3a620edf2dcf9424d7a6df58a0275097b90fa6e |
24 |
+DIST Cython-0.29.9.tar.gz 2049206 BLAKE2B d81cc4be6d99e8be025167700517880c3250feaf929f84a9de76e2c9f1ac5eb8018a7cb4609d95c01112e35ab54070eb373157004621d45db3c347ea2b585bb5 SHA512 17ac97eaa01e3c6cd9c7d597822ad25ef5cec2354055304a2999a0a0d969fa0513640470260cf0d88c8d9a7c331f02d1ebf144245a6c45de47e26e7fa73b0ae1 |
25 |
|
26 |
diff --git a/dev-python/cython/cython-0.29.9.ebuild b/dev-python/cython/cython-0.29.9.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3bd1896df64 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cython/cython-0.29.9.ebuild |
31 |
@@ -0,0 +1,86 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+inherit distutils-r1 toolchain-funcs elisp-common |
41 |
+ |
42 |
+MY_PN="Cython" |
43 |
+MY_P="${MY_PN}-${PV/_/}" |
44 |
+ |
45 |
+DESCRIPTION="A Python to C compiler" |
46 |
+HOMEPAGE="https://cython.org https://pypi.org/project/Cython/" |
47 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="Apache-2.0" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
52 |
+IUSE="doc emacs test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ emacs? ( virtual/emacs ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
60 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
61 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
62 |
+ |
63 |
+SITEFILE=50cython-gentoo.el |
64 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ # tests behavior that is illegal in Python 3.7+ |
68 |
+ # https://github.com/cython/cython/issues/2454 |
69 |
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die |
70 |
+ |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |
73 |
+ |
74 |
+python_compile() { |
75 |
+ if ! python_is_python3; then |
76 |
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
77 |
+ local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
78 |
+ fi |
79 |
+ |
80 |
+ # Python gets confused when it is in sys.path before build. |
81 |
+ local -x PYTHONPATH= |
82 |
+ |
83 |
+ distutils-r1_python_compile |
84 |
+} |
85 |
+ |
86 |
+python_compile_all() { |
87 |
+ use emacs && elisp-compile Tools/cython-mode.el |
88 |
+ |
89 |
+ use doc && emake -C docs html |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ tc-export CC |
94 |
+ # https://github.com/cython/cython/issues/1911 |
95 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
96 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
97 |
+ || die "Tests fail with ${EPYTHON}" |
98 |
+} |
99 |
+ |
100 |
+python_install_all() { |
101 |
+ local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
102 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
103 |
+ distutils-r1_python_install_all |
104 |
+ |
105 |
+ if use emacs; then |
106 |
+ elisp-install ${PN} Tools/cython-mode.* |
107 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ use emacs && elisp-site-regen |
113 |
+} |
114 |
+ |
115 |
+pkg_postrm() { |
116 |
+ use emacs && elisp-site-regen |
117 |
+} |