Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydevd/
Date: Sun, 17 Oct 2021 09:20:54
Message-Id: 1634462430.d345a8143f06ce52dbba39b68318f52e8a671987.mgorny@gentoo
1 commit: d345a8143f06ce52dbba39b68318f52e8a671987
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 17 09:14:32 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 17 09:20:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d345a814
7
8 dev-python/pydevd: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pydevd/Manifest | 1 -
13 dev-python/pydevd/pydevd-2.5.0-r1.ebuild | 86 --------------------------------
14 2 files changed, 87 deletions(-)
15
16 diff --git a/dev-python/pydevd/Manifest b/dev-python/pydevd/Manifest
17 index 83d76a20438..27758f81c2f 100644
18 --- a/dev-python/pydevd/Manifest
19 +++ b/dev-python/pydevd/Manifest
20 @@ -1,2 +1 @@
21 -DIST pydev_debugger_2_5_0.tar.gz 4140556 BLAKE2B 8630fc35138b3bb768b8a62a2f1388a1144baa9207aec49717c3c04843a393b130dfaef3266ad8fce5a5aa3af4e25d4441b075da0aa36ec1a8716db5ba5ac56c SHA512 7ebf1a5405a376fb19fb4bab0f4874e6be273d3c095338d8a2bfad433b0ec306918b2c650bd20dc5ffd835dd01e7398da2b66607a66dad931f98764f572e0be8
22 DIST pydev_debugger_2_6_0.tar.gz 4142790 BLAKE2B 46776e261e77a745867423488f97c6584c9497d883d8e2b19f4f82c58472f410f1b5f287ce24b8c20e9cdaa2202cbc78235ea4a7e9aa2981aa520e0b58e4fcd3 SHA512 5e7703f2eec53fe7b4d78d59894cfbb14a35a62ad20431242477f66e72344d88d5538ebe2007526e4ff250e8bcf41702acc71692239693dd9cb788ced70d7aaa
23
24 diff --git a/dev-python/pydevd/pydevd-2.5.0-r1.ebuild b/dev-python/pydevd/pydevd-2.5.0-r1.ebuild
25 deleted file mode 100644
26 index b44beca2850..00000000000
27 --- a/dev-python/pydevd/pydevd-2.5.0-r1.ebuild
28 +++ /dev/null
29 @@ -1,86 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=8
34 -
35 -PYTHON_COMPAT=( python3_{8..9} )
36 -
37 -inherit distutils-r1 toolchain-funcs
38 -
39 -DESCRIPTION="PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)"
40 -HOMEPAGE="https://github.com/fabioz/PyDev.Debugger/"
41 -SRC_URI="https://github.com/fabioz/PyDev.Debugger/archive/refs/tags/pydev_debugger_${PV//./_}.tar.gz"
42 -S="${WORKDIR}/PyDev.Debugger-pydev_debugger_${PV//./_}"
43 -
44 -LICENSE="EPL-1.0"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
47 -
48 -# After removing and recompiling the prebuilt lib the tests fail?
49 -# For some reason the test suite is executing a slightly different gdb command
50 -# then before, which is lacking the file name of the lib that was pre built:
51 -# gdb: No symbol table is loaded. Use the "file" command
52 -# This also happens outside of portage so it is not related to any *FLAGS
53 -RESTRICT="test"
54 -
55 -BDEPEND="
56 - test? (
57 - dev-python/untangle[${PYTHON_USEDEP}]
58 - dev-python/numpy[${PYTHON_USEDEP}]
59 - dev-python/psutil[${PYTHON_USEDEP}]
60 - )
61 -"
62 -
63 -# Block against the version of debugpy that still bundles pydevd
64 -RDEPEND="
65 - !<dev-python/debugpy-1.4.2
66 - sys-devel/gdb
67 -"
68 -
69 -distutils_enable_tests pytest
70 -
71 -python_prepare_all() {
72 - distutils-r1_python_prepare_all
73 -
74 - # Drop -O3 and -flto compiler args
75 - sed -i \
76 - -e 's/extra_link_args = extra_compile_args\[\:\]/pass/g' \
77 - -e '/extra_compile_args/d' \
78 - setup.py || die
79 -
80 - # Clean up some prebuilt files
81 - rm -r third_party || die
82 - cd pydevd_attach_to_process || die
83 -
84 - # Remove these Windows files
85 - rm attach_{amd64,x86}.dll || die
86 - rm inject_dll_{amd64,x86}.exe || die
87 - rm run_code_on_dllmain_{amd64,x86}.dll || die
88 - rm -r windows winappdbg || die
89 -
90 - # Remove these MacOS files
91 - rm attach_x86_64.dylib || die
92 -
93 - # Remove these prebuilt linux files
94 - rm attach_linux_{amd64,x86}.so || die
95 -
96 - cd linux_and_mac || die
97 - rm compile_mac.sh || die
98 -}
99 -
100 -src_compile() {
101 - pushd pydevd_attach_to_process/linux_and_mac || die
102 - # recompile removed file (extracted from compile_linux.sh)
103 - $(tc-getBUILD_CXX) ${CXXFLAGS} ${CFLAGS} -o "attach_linux_${ARCH}.so" \
104 - -ldl ${LDFLAGS} -nostartfiles attach.cpp || die
105 - mv "attach_linux_${ARCH}.so" ../ || die
106 - popd || die
107 - python_foreach_impl distutils-r1_python_compile
108 -}
109 -
110 -python_install_all() {
111 - distutils-r1_python_install_all
112 - # Remove this duplicate that is installed directly to /usr/
113 - # These files are also correctly installed to the python site-packages dir
114 - rm -r "${ED}/usr/pydevd_attach_to_process" || die
115 -}