all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: jgart <jgart@dismail.de>
Cc: guix-devel@gnu.org
Subject: Re: Caching The Python World: guix shell --container
Date: Sat, 15 Jan 2022 08:45:57 +0100	[thread overview]
Message-ID: <875yqlxwqn.fsf@elephly.net> (raw)
In-Reply-To: <20220115023047.GB14101@gac.attlocal.net>


jgart <jgart@dismail.de> writes:

> Is there currently a convenient way to tell Guix to build "all python-*
> packages" and cache them?

This should do it:

    guix build --keep-going -e '\
      (begin \
        (import (guix packages) (gnu packages) (guix build-system python)) \
        (fold-packages \
          (lambda (item acc) \
            (if (eq? python-build-system (package-build-system item)) \
              (cons item acc) acc)) \
          (list)))'

This will build all packages with python-build-system.

-- 
Ricardo


  reply	other threads:[~2022-01-15  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-15  7:30 Caching The Python World: guix shell --container jgart
2022-01-15  7:45 ` Ricardo Wurmus [this message]
2022-01-15  8:24   ` jgart
2022-01-15 11:25     ` Ricardo Wurmus

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=875yqlxwqn.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.