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
---
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
# 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
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
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
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!),
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
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