[gentoo-dev] [PATCH 2/2] distutils-r1.eclass: Skip build_ext when there no .c/.pyx files

2022-04-09 Thread Michał Górny
Skip issuing build_ext when there appears to be no .c/.pyx files. Since starting setuptools is expensive, this gives a major speedup to building pure Python packages. If the check misfires, the worst that can happen is that C extensions will be built serialized. Signed-off-by: Michał Górny ---

[gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Call build_ext instead of build in PEP517 mode

2022-04-09 Thread Michał Górny
Call `setup.py build_ext` instead of the wholesale `build` in PEP517 mode. After all, the call is not strictly necessary; it is only done in order to build C extensions in parallel (PEP517 backend does not support specifying job count). By skipping the other tasks build command does (and then

[gentoo-dev] Last rites: dev-python/zope-testrunner

2022-04-09 Thread Michał Górny
# Michał Górny (2022-04-09) # A test runner specific to zope packages that was never really used # (only as a mistaken test-dep).  No revdeps left. # Removal on 2022-05-09.  Bug #837530. dev-python/zope-testrunner -- Best regards, Michał Górny

Re: [gentoo-dev] Re: [RFC] dev-python/namespace-* retirement plan

2022-04-09 Thread Michał Górny
On Sat, 2022-04-09 at 19:08 +0300, Arthur Zamarin wrote: > On 09/04/2022 18.20, Michał Górny wrote: > > Hi, everyone. > > > > TL;DR I think I came up with a feasible plan towards cleanly removing > > dev-python/namespace-* packages that aren't technically needed anymore > > with modern versions

[gentoo-dev] [PATCH 2/2] distutils-r1.eclass: Issue a QA warning if "build" exists

2022-04-09 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index e6b0ab5e0e32..2e4a11bb8826 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass

[gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Prefer "rm -rf build" over "setup.py clean -a"

2022-04-09 Thread Michał Górny
Prefer using "rm -rf build" directly over "setup.py clean -a". This has three advantages: 1. It is much faster. 2. It works on packages that have broken "setup.py clean", e.g. dev-python/pydantic. 3. It works on packages that block "setup.py clean" and tell you to use "git clean" (sic!),

[gentoo-dev] Re: [RFC] dev-python/namespace-* retirement plan

2022-04-09 Thread Arthur Zamarin
On 09/04/2022 18.20, Michał Górny wrote: > Hi, everyone. > > TL;DR I think I came up with a feasible plan towards cleanly removing > dev-python/namespace-* packages that aren't technically needed anymore > with modern versions of Python. > > > What are namespace packages? Let's take "zope" as

[gentoo-dev] [RFC] dev-python/namespace-* retirement plan

2022-04-09 Thread Michał Górny
Hi, everyone. TL;DR I think I came up with a feasible plan towards cleanly removing dev-python/namespace-* packages that aren't technically needed anymore with modern versions of Python. What are namespace packages? Let's take "zope" as an example. Normally, various subpackages like