From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E0C315817D for ; Tue, 11 Jun 2024 16:09:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3825E2A94; Tue, 11 Jun 2024 16:09:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7329FE2A8D for ; Tue, 11 Jun 2024 16:09:08 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 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 Message-ID: <20240611160901.75830-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 208aa7a1-adaa-498b-950b-b093f690e93f X-Archives-Hash: 72efed4dd37d2bf5c8164f20a57a17a7 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