unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Lars-Dominik Braun <lars@6xq.net>,
	Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 44656@debbugs.gnu.org
Subject: [bug#44656] [PATCH] Upgrade pypy3
Date: Fri, 20 Aug 2021 12:39:20 +0200	[thread overview]
Message-ID: <86tujko0x3.fsf@gmail.com> (raw)
In-Reply-To: <YQ4vN+aiTKWgzSfs@noor.fritz.box>

Hi,

On Sat, 07 Aug 2021 at 08:59, Lars-Dominik Braun <lars@6xq.net> wrote:
> Hi Maxim,
>
>> I guess one way it could work was if we had some transformation option
>> to rebuild the Python collection against Pypy (do we have something to
>> do this already?).
> yes, there is package-with-explicit-python in (guix build-system
> python), but you’ll need transform every single existing Python package
> with it to make it usable with PyPy (just like Python 2). There’s also

What do you mean?  Using ’package-with-explicit-python’ on a package
will replace the Python used by the ’python-build-system’ for all the
dependencies.  Modulo the issues what C extension, if one wants the
Python packages bytecompiled with PyPy, using a manifest containing:

--8<---------------cut here---------------start------------->8---
(define package-with-pypy
  (package-with-explicit-python (delay pypy3
                                "python-" "pypy-")))

(packages->manifest
  (map
    (compose package-with-pypy specification->package)    
      (list "python-foo" "python-bar")))
--8<---------------cut here---------------end--------------->8---

would be the somehow thing I would do.  Well, something in the spirit of
«Defining Package Vaiants». ;-)

<https://guix.gnu.org/manual/devel/en/guix.html#Defining-Package-Variants>

However…

> --with-input=python=pypy3, but I think it will rewrite too much (i.e.
> not just packages using python-build-system, but *every* package in the
> graph using Python in any way).

…similarly as replacing the Emacs VM [0], I guess some packages
will be broken.  Well, for instance if some packages use
’python-minimal’ instead of ’python’, the replacement will not happen.

Last, is it an issue to rewrite too much?

Cheers,
simon

0: <http://issues.guix.gnu.org/41732#14>




  reply	other threads:[~2021-08-20 11:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 12:39 [bug#44656] [PATCH] Upgrade pypy3 Lars-Dominik Braun
2020-11-15 19:33 ` Christopher Baines
2020-11-15 19:55   ` Lars-Dominik Braun
2020-11-16 17:26     ` Christopher Baines
2020-11-17  9:38       ` Lars-Dominik Braun
2021-08-03 21:39 ` Maxim Cournoyer
2021-08-05 16:54   ` bug#44656: " Maxim Cournoyer
2021-08-06  7:30   ` [bug#44656] " Lars-Dominik Braun
2021-08-06 14:22     ` Maxim Cournoyer
2021-08-06 14:43       ` Lars-Dominik Braun
2021-08-07  1:29         ` Maxim Cournoyer
2021-08-07  6:59           ` Lars-Dominik Braun
2021-08-20 10:39             ` zimoun [this message]
2021-08-20 14:25               ` Lars-Dominik Braun

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=86tujko0x3.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=44656@debbugs.gnu.org \
    --cc=lars@6xq.net \
    --cc=maxim.cournoyer@gmail.com \
    /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 public inbox

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

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).