From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1447726-garchives=archives.gentoo.org@lists.gentoo.org> 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 CA9E4158021 for <garchives@archives.gentoo.org>; Mon, 17 Oct 2022 05:28:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21842E0839; Mon, 17 Oct 2022 05:28:57 +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 074F4E0839 for <gentoo-commits@lists.gentoo.org>; Mon, 17 Oct 2022 05:28:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 28F0B341082 for <gentoo-commits@lists.gentoo.org>; Mon, 17 Oct 2022 05:28:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4C385D7 for <gentoo-commits@lists.gentoo.org>; Mon, 17 Oct 2022 05:28:54 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1665984528.b7836c0d545d8e0bd995521ce8ea328e310153ab.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/versioneer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/versioneer/versioneer-0.26.ebuild X-VCS-Directories: dev-python/versioneer/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b7836c0d545d8e0bd995521ce8ea328e310153ab X-VCS-Branch: master Date: Mon, 17 Oct 2022 05:28:54 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 62f335f9-df4b-458f-beb0-5419da3f29d8 X-Archives-Hash: adca059d60383f5bb842dd36ff824e6f commit: b7836c0d545d8e0bd995521ce8ea328e310153ab Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Oct 17 04:53:26 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Oct 17 05:28:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7836c0d dev-python/versioneer: Workaround build failure against older ver. Closes: https://bugs.gentoo.org/870241 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/versioneer/versioneer-0.26.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-python/versioneer/versioneer-0.26.ebuild b/dev-python/versioneer/versioneer-0.26.ebuild index 2405afe4e4b0..6f029c227ac9 100644 --- a/dev-python/versioneer/versioneer-0.26.ebuild +++ b/dev-python/versioneer/versioneer-0.26.ebuild @@ -35,6 +35,14 @@ BDEPEND=" ) " +python_compile() { + cat > "${T}"/versioneer.py <<-EOF || die + raise ImportError("Please pretend I'm not here!") + EOF + local -x PYTHONPATH=${T}:${PYTHONPATH} + distutils-r1_python_compile +} + python_test() { esetup.py make_versioneer