From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0H5NHafB9GOtZQEAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 14:05:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CA/vHKfB9GO0cAAA9RJhRA (envelope-from ) for ; Tue, 21 Feb 2023 14:05:43 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 470FF9BC0 for ; Tue, 21 Feb 2023 14:05:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Nt5IOxsb; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676984743; a=rsa-sha256; cv=none; b=cYWAuR5yrzxjQecE57li2b32Oavhu/bUZbss3S6plJf4LmlsEarzWQxB/zl5S0oGXeiKF1 gmTyVf4v/3PhztHAxAXRxP7Jxovw1SluSjTjaNGnhd/ODFvguuf3xtVEvckwsoQgmZ0O4C gPLA8Cy2KEbrAzM5XTEB88rk0zUDoYB93OORYLe00E8wxs5kFRNTVugszs61IhqzlcZQiG JJhzpRco+cegPhaGNH9H3fbYMMYNepCkCOiUCdryaWw5aUMg9wj2jdF3FXjCqt0bFnENI+ xeDgibgTGe0c7cfpZ5XmlEIqSlYh4ffSbtxLG7NUi+GWz5NdZEfZcJI1RfOTsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Nt5IOxsb; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676984743; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+hxFDD7xbtWntfSzk4HMY50G3nN4vtflUFs+1qVb+n4=; b=PupDZA3rVzQnJneet195iPRkqsVgTZ+8itTFhTy+OLO02TZT0kpU2nm+ZSMrBhvhSjTTuU NRTyiuVYAdLqPkBlzdLPvtsD+Z4Ly9eB18lF5HPCEbFVk+N4VnFIscquhxvy7oCsDQw+18 LjeZb3qvePVdUn52qpp7GtIxh2kFTta2g2RAlyPlOB8Mnj1uf8UuW6zu/H73PohEenTYTf B2TKKBjW2x//NtVeUcF2d/e0VJdnA0WxyjE00avtANhtu5izl/pdwD2Ii/cgmdjafLGlVj xVSax5dRKapgDsuWAgZUMsoXdMTsj7ZOiVNSTF+9o6fln7QaUUP0gkXA9iKk+g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUSKY-00084H-Kb; Tue, 21 Feb 2023 08:05:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUSKV-00080A-Vh for help-guix@gnu.org; Tue, 21 Feb 2023 08:05:12 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUSKU-00032q-Aj for help-guix@gnu.org; Tue, 21 Feb 2023 08:05:11 -0500 Received: by mail-wr1-x436.google.com with SMTP id t15so4462970wrz.7 for ; Tue, 21 Feb 2023 05:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+hxFDD7xbtWntfSzk4HMY50G3nN4vtflUFs+1qVb+n4=; b=Nt5IOxsbjlpH51GeDjTT8GwQfKY5Z/w8Bf94iVUPJGPfAv3q/eK4ZgOoIUnKy7wj2Y EKJY90bd4IPiljvlf7uhpeGQbTege6Tkdx72s+YrdtXRw90v6mP8lDKBv06mpjgMThEt UV2EN0p115F0rLVma2trUOaQt2bCHgLQnJQcKav6N+ICs210W3GK0iohMyd8+7iKd2Gf GtvUlXFGSZjmqgBVtPfPEGF7ERHbv1zWAb6wZU1N5GKmit0QSnhzns7cR5+MHpyQba1G YxfiqeX2KJ2TojZtNBRp79MyQ8h7Sg+nlSjYojMKo1SBUGU/vRpoaEKUj+0bhPgEiTc9 4LPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=+hxFDD7xbtWntfSzk4HMY50G3nN4vtflUFs+1qVb+n4=; b=A2W7OjA3oizQJz2H82ElrkF6RnwUcX0cSR4o6VZPZXodw6voT0EhJPthRHCyMU/5ZR 3lvTcAkTOeVBzYBQbnITMnlQvxIeoMULSFWzcQAgt5pQc/wMEcZbFuPxhW3yUw9dJvPo zSOCRiIxP7IC8mJ3SanFj/njXUCug3wlwsIZOn/QKRGt6H/I2IFV66wOCxily5dW7hpC uqmmyZLm1plhPgNfjtNAWneh64H5Nz4BO3GuP8jSJK2nKeH/mWLm7Q3Gn57x7QVmmnif sbeBK3bpNyHxjnlb+/mTCff0xh9E95Yl4KBxNA+D2x6Xgf1AVaEV/foeUeIEekRXinBk P1CQ== X-Gm-Message-State: AO0yUKWIrZHARPk8sTYDhprCIjLqG+iWBDmYB4MmqmnOOIeDu9J33DPd /qyLZe73No3c+7stMzJ3SiTWHAk4KBM= X-Google-Smtp-Source: AK7set9Zz6acrmDRNiSJ9Skd/gFjY7szdDHFLg4kp6WqUkSohYgBbOyySVeJg1fzfUZaKyYAaAux5g== X-Received: by 2002:a5d:480d:0:b0:2c7:660:9284 with SMTP id l13-20020a5d480d000000b002c706609284mr1106436wrq.0.1676984708609; Tue, 21 Feb 2023 05:05:08 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l15-20020a5d4bcf000000b002c54c7153f0sm6863064wrt.1.2023.02.21.05.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 05:05:08 -0800 (PST) From: Simon Tournier To: Kyle Andrews , help-guix@gnu.org Subject: Re: Using an alternative python to build python modules In-Reply-To: <87ttzkose5.fsf@posteo.net> References: <87ttzkose5.fsf@posteo.net> Date: Tue, 21 Feb 2023 13:52:08 +0100 Message-ID: <86a6179o5j.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 470FF9BC0 X-Spam-Score: -8.37 X-Migadu-Spam-Score: -8.37 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: vHp7aj8CpR17 Hi, On Fri, 17 Feb 2023 at 21:27, Kyle Andrews wrote: > For example: > > ``` > (build-system python-build-system #:python python-3.6) > ``` > > That would be quite convenient and in line with the level of complexity > I was faced with when I took the conda approach before trying to use > Guix. Unfortunately, this functionality doesn't seem to be provided out > of box and I am seeking help in the hopes that there is an easy way to > do it. You might be interested by the unexported procedure from (guix build-system python): --8<---------------cut here---------------start------------->8--- (define* (package-with-explicit-python python old-prefix new-prefix #:key variant-property) "Return a procedure of one argument, P. The procedure creates a package = with the same fields as P, which is assumed to use PYTHON-BUILD-SYSTEM, such that it is compiled with PYTHON instead. The inputs are changed recursively accordingly. If the name of P starts with OLD-PREFIX, this is replaced by NEW-PREFIX; otherwise, NEW-PREFIX is prepended to the name. When VARIANT-PROPERTY is present, it is used as a key to search for pre-defined variants of this transformation recorded in the 'properties' fi= eld of packages. The property value must be the promise of a package. This is= a convenient way for package writers to force the transformation to use pre-defined variants." --8<---------------cut here---------------end--------------->8--- For example, it was intensively used for maintaining both Python 3 and Python 2 variants. For instance, if you have a variant of the Python interpreter say variant-python, then can have a manifest that apply the transformation, something like: --8<---------------cut here---------------start------------->8--- (map (lambda (pkg) ((package-with-explicit-python variant-python =E2=80=9Cpython-=E2=80=9D =E2=80=9Cpython-=E2=80=9D #:variant-proper= ty my-python) pkg)) (list python-one python-two python-three etc)) --8<---------------cut here---------------end--------------->8--- =20=20 Cheers, simon