From: "(" <paren@disroot.org>
To: "jgart" <jgart@dismail.de>, "Guix Help" <help-guix@gnu.org>
Subject: Re: (length all-python-packages)
Date: Tue, 15 Nov 2022 20:36:35 +0000 [thread overview]
Message-ID: <COD5P19YLOOM.286HAM1U8M8MZ@guix-framework> (raw)
In-Reply-To: <20221115142211.GB26794@dismail.de>
On Tue Nov 15, 2022 at 8:22 PM GMT, jgart wrote:
> How can I list how many Python packages we currently have in master?
How about this:
(use-modules (gnu packages)
(guix build-system pyproject)
(guix build-system python)
(guix packages))
(fold-packages (lambda (pkg count)
(+ 1 count))
0
#:select?
(lambda (pkg)
(and (not (hidden-package? pkg))
(member (package-build-system pkg)
(list pyproject-build-system
python-build-system)))))
For me, this returns "2749".
-- (
next prev parent reply other threads:[~2022-11-15 20:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-15 20:22 (length all-python-packages) jgart
2022-11-15 20:36 ` ( [this message]
2022-11-16 14:19 ` Andreas Enge
2022-11-16 14:37 ` jgart
2022-11-16 14:44 ` Tobias Geerinckx-Rice
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=COD5P19YLOOM.286HAM1U8M8MZ@guix-framework \
--to=paren@disroot.org \
--cc=help-guix@gnu.org \
--cc=jgart@dismail.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).