1 |
commit: 65fa42a7147a265c6933843cbe3684e603abad20 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 7 15:31:49 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 7 15:31:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65fa42a7 |
7 |
|
8 |
dev-python/cython: Remove redundant versions |
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.4.ebuild | 87 ---------------------------------- |
14 |
2 files changed, 88 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index d4634097af5..25c96bd42e1 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
-DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc |
22 |
DIST cython-0.29.14.gh.tar.gz 2075030 BLAKE2B 12bbc2979c34fee9b498f5425d2cea5cedebda474e3f4ee6c9eb3185a4e33fc84df6c16454830316548e36cd9fb7c47f0925b0d6e16b325cbd81f8747c7e492a SHA512 fa1575fc5ec7ee19de34f91a15bdd45d889f54217dbe2a9654604ada90d8d86fe7bceb86449c41b68d6b65459769916a0d7d5f5da21c5597aedc876cde4e37df |
23 |
DIST cython-0.29.15.gh.tar.gz 2075879 BLAKE2B e6322656c819c6b09e235c32d2b520e8fe917c864047d028dd67041e70251025f14accbd76499b7b9290d0424989adf89321f251526e66a892bdc243ba80ba7f SHA512 bd0872359d31a41750353bb0d7f03c2a40aa2bf6e492148e693321cef15b02ae4f8d5f5a00efde7216f09a6ac06f2bb3ded9d00e27ad0cfc53605f3a9ef55af8 |
24 |
|
25 |
diff --git a/dev-python/cython/cython-0.29.4.ebuild b/dev-python/cython/cython-0.29.4.ebuild |
26 |
deleted file mode 100644 |
27 |
index 75983b81889..00000000000 |
28 |
--- a/dev-python/cython/cython-0.29.4.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,87 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-PYTHON_COMPAT=( python2_7 python3_{6,7} ) |
37 |
-PYTHON_REQ_USE="threads(+)" |
38 |
- |
39 |
-inherit distutils-r1 toolchain-funcs elisp-common |
40 |
- |
41 |
-MY_PN="Cython" |
42 |
-MY_P="${MY_PN}-${PV/_/}" |
43 |
- |
44 |
-DESCRIPTION="A Python to C compiler" |
45 |
-HOMEPAGE="https://cython.org https://pypi.org/project/Cython/" |
46 |
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
47 |
- |
48 |
-LICENSE="Apache-2.0" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
51 |
- |
52 |
-IUSE="doc emacs test" |
53 |
-RESTRICT="!test? ( test )" |
54 |
- |
55 |
-RDEPEND=" |
56 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
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 |
-} |