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