From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/frozenlist/
Date: Sun, 6 Aug 2023 08:48:48 +0000 (UTC) [thread overview]
Message-ID: <1691311724.4fb5c79cc8cc6c732090f201ed506554e67fbd89.mgorny@gentoo> (raw)
commit: 4fb5c79cc8cc6c732090f201ed506554e67fbd89
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 6 08:44:51 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 6 08:48:44 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fb5c79c
dev-python/frozenlist: Add a flag to disable C extensions entirely
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/frozenlist/frozenlist-1.4.0.ebuild | 17 ++++++++++++-----
dev-python/frozenlist/metadata.xml | 6 ++++++
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/dev-python/frozenlist/frozenlist-1.4.0.ebuild b/dev-python/frozenlist/frozenlist-1.4.0.ebuild
index 21355bc2d995..75fad1a5bdf3 100644
--- a/dev-python/frozenlist/frozenlist-1.4.0.ebuild
+++ b/dev-python/frozenlist/frozenlist-1.4.0.ebuild
@@ -22,11 +22,14 @@ SRC_URI="
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
BDEPEND="
- $(python_gen_cond_dep '
- dev-python/cython[${PYTHON_USEDEP}]
- ' 'python*')
+ native-extensions? (
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ' 'python*')
+ )
"
distutils_enable_tests pytest
@@ -36,12 +39,16 @@ src_prepare() {
distutils-r1_src_prepare
}
-python_configure() {
+python_compile() {
# pypy is not using the C extension
- if [[ ${EPYTHON} == python* ]]; then
+ if use native-extensions && [[ ${EPYTHON} == python* ]]; then
> .install-cython || die
emake cythonize
+ else
+ local -x FROZENLIST_NO_EXTENSIONS=1
fi
+
+ distutils-r1_python_compile
}
python_test() {
diff --git a/dev-python/frozenlist/metadata.xml b/dev-python/frozenlist/metadata.xml
index 0e65c5bac7fa..b971f98658cc 100644
--- a/dev-python/frozenlist/metadata.xml
+++ b/dev-python/frozenlist/metadata.xml
@@ -8,4 +8,10 @@
<remote-id type="pypi">frozenlist</remote-id>
<remote-id type="github">aio-libs/frozenlist</remote-id>
</upstream>
+ <use>
+ <flag name="native-extensions">
+ Compile native C extensions (speedups, instead of using Python
+ fallback code).
+ </flag>
+ </use>
</pkgmetadata>
next reply other threads:[~2023-08-06 8:48 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-06 8:48 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 21:54 [gentoo-commits] repo/gentoo:master commit in: dev-python/frozenlist/ Sam James
2024-11-09 10:46 Sam James
2024-11-09 10:22 Arthur Zamarin
2024-11-09 10:20 Arthur Zamarin
2024-11-09 10:03 Arthur Zamarin
2024-11-09 9:52 Sam James
2024-10-23 19:33 Arthur Zamarin
2024-09-06 15:26 Arthur Zamarin
2024-01-23 16:53 Michał Górny
2024-01-23 4:17 Sam James
2023-12-30 15:19 Arthur Zamarin
2023-12-30 15:19 Arthur Zamarin
2023-12-30 14:51 Arthur Zamarin
2023-12-30 14:25 Arthur Zamarin
2023-12-30 14:25 Arthur Zamarin
2023-12-30 14:07 Arthur Zamarin
2023-12-30 14:05 Arthur Zamarin
2023-12-16 2:45 Sam James
2023-12-15 16:59 Michał Górny
2023-09-15 4:49 Arthur Zamarin
2023-09-07 20:07 Sam James
2023-09-07 20:07 Sam James
2023-09-07 20:07 Sam James
2023-09-07 19:52 Sam James
2023-09-07 19:52 Sam James
2023-09-07 19:31 Arthur Zamarin
2023-08-06 7:47 Michał Górny
2023-07-13 5:28 Michał Górny
2023-05-29 13:58 Sam James
2023-05-04 16:11 Michał Górny
2022-12-11 20:50 Michał Górny
2022-12-11 18:33 Arthur Zamarin
2022-12-10 9:15 Arthur Zamarin
2022-12-10 9:15 Arthur Zamarin
2022-12-10 8:50 Arthur Zamarin
2022-12-10 8:50 Arthur Zamarin
2022-11-09 8:38 Michał Górny
2022-09-10 11:03 Michał Górny
2022-09-10 10:21 Arthur Zamarin
2022-09-06 21:52 Sam James
2022-09-06 21:41 Jakov Smolić
2022-09-06 21:28 Sam James
2022-09-06 21:15 Sam James
2022-09-06 21:12 Sam James
2022-09-06 19:38 Arthur Zamarin
2022-09-06 19:31 Arthur Zamarin
2022-08-03 17:30 Arthur Zamarin
2022-05-13 16:11 Michał Górny
2022-04-26 1:51 Sam James
2022-03-12 19:49 Michał Górny
2022-03-12 11:06 Arthur Zamarin
2022-03-06 8:03 Sam James
2022-03-06 7:36 Sam James
2022-02-27 16:38 Sam James
2022-01-18 22:44 Michał Górny
2021-12-31 16:53 Matt Turner
2021-12-17 14:15 Arthur Zamarin
2021-12-15 17:01 Arthur Zamarin
2021-12-15 17:00 Arthur Zamarin
2021-12-10 16:16 Sam James
2021-12-10 12:16 Jakov Smolić
2021-12-10 12:11 Arthur Zamarin
2021-12-10 11:48 Arthur Zamarin
2021-12-10 11:34 Arthur Zamarin
2021-11-19 2:08 Sam James
2021-11-12 8:43 Marek Szuba
2021-11-10 19:10 Jakov Smolić
2021-11-05 3:17 Sam James
2021-11-04 21:15 Sam James
2021-11-04 16:52 Sam James
2021-11-01 11:40 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=1691311724.4fb5c79cc8cc6c732090f201ed506554e67fbd89.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.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