public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 0/8] python-r1 + distutils-r1: PYTHON_USEDEP in phases and cleanup
Date: Tue, 11 Jun 2024 18:00:17 +0200	[thread overview]
Message-ID: <20240611160901.75830-1-mgorny@gentoo.org> (raw)

Hi,

Here's a next batch of minor changes to distutils-r1 + a signifcant
change to python-r1.

For python-r1, the patch overrides PYTHON_USEDEP
and PYTHON_SINGLE_USEDEP for phase function calls, similarly to how we
do it for python_check_deps().  This makes it possible to easily perform
has_version calls for the dependencies of a package, e.g. to
conditionally skip some tests.

In fact, I was so used to python_check_deps() doing that, that I've
forgotten that distutils-r1 doesn't do it and relied on it in a bunch
of ebuilds (effectively deselecting tests on all implementations when
I only meant to do it on a few).

As for distutils-r1, the biggest change is removing
distutils_install_for_testing (and distutils_enable_tests --install).
It was deprecated for a while now along with legacy builds, and it is
only used in ::gentoo in old package versions (that will be removed
along with the change).  This is a step towards pushing overlays
to PEP517 migration.

Besides that, some eclass documentation improvements are included,
and DISTUTILS_IN_SOURCE_BUILD is marked as deprecated via eclassdoc,
effectively triggering pkgcheck reports about it.  That will probably
be the next legacy build feature to be removed.

Pull request: https://github.com/gentoo/gentoo/pull/36945


Michał Górny (8):
  distutils-r1.eclass: Remove doc for DOCS, HTML_DOCS and PATCHES
  distutils-r1.eclass: Doc DISTUTILS_OPTIONAL + DISTUTILS_SINGLE_IMPL
  distutils-r1.eclass: Doc DISTUTILS_IN_SOURCE_BUILD as deprecated
  distutils-r1.eclass: Document BUILD_DIR for consistency
  distutils-r1.eclass: Remove support for `d_e_t --install`
  distutils-r1.eclass: Remove distutils_install_for_testing
  distutils-r1.eclass: Change "PEP 517" to "PEP517", for consistency
  python-r1.eclass: Override PYTHON*_USEDEP in sub-phases

 eclass/distutils-r1.eclass | 217 ++++++-------------------------------
 eclass/python-r1.eclass    |   4 +-
 2 files changed, 38 insertions(+), 183 deletions(-)

-- 
2.45.2



             reply	other threads:[~2024-06-11 16:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-11 16:00 Michał Górny [this message]
2024-06-11 16:00 ` [gentoo-dev] [PATCH 1/8] distutils-r1.eclass: Remove doc for DOCS, HTML_DOCS and PATCHES Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 2/8] distutils-r1.eclass: Doc DISTUTILS_OPTIONAL + DISTUTILS_SINGLE_IMPL Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 3/8] distutils-r1.eclass: Doc DISTUTILS_IN_SOURCE_BUILD as deprecated Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 4/8] distutils-r1.eclass: Document BUILD_DIR for consistency Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 5/8] distutils-r1.eclass: Remove support for `d_e_t --install` Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 6/8] distutils-r1.eclass: Remove distutils_install_for_testing Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 7/8] distutils-r1.eclass: Change "PEP 517" to "PEP517", for consistency Michał Górny
2024-06-11 16:00 ` [gentoo-dev] [PATCH 8/8] python-r1.eclass: Override PYTHON*_USEDEP in sub-phases Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240611160901.75830-1-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox