From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4J3SDvqm81+TIgAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 23:38:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SJeOCvqm8195bgAAbx9fmQ (envelope-from ) for ; Mon, 04 Jan 2021 23:38:34 +0000 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 20DC5940438 for ; Mon, 4 Jan 2021 23:38:32 +0000 (UTC) Received: from localhost ([::1]:60400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwZQk-0001BF-Jc for larch@yhetil.org; Mon, 04 Jan 2021 18:38:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwZNC-00078P-FX for help-guix@gnu.org; Mon, 04 Jan 2021 18:34:50 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:39806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwZN7-00036n-8V for help-guix@gnu.org; Mon, 04 Jan 2021 18:34:50 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 3so772978wmg.4 for ; Mon, 04 Jan 2021 15:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:message-id:date:mime-version; bh=coVilMxGoWMdLOh9DtrKsbuaCfNB/md2nBZyohxFz50=; b=E4B5TCpE5B0VDzttk2SDzlUc7YmzUaKSc9UkkDpjGeLRTf8+0aMfUG/3r00R7jqpxK LBVEeOPio9ymwFfQnVz+u21jsX/65eoJPP2+W7PRX1adqR+uhDR9WaCB5IbEUJ0N7eg3 k/lO+h+3s4rhVinl8OfXj2aE6Vc7DZfGUUeb5ETGe4a8c+emV2NrEf3FsBfuOB9495aV DO4BVA+s8PSiTTpyvimwxDeXUJfk/5zeavMn8nFzVnq49M+0rGsdbRTWaE5YA+ACVgk/ 4szPnA0hYB5i5k1OXcDpjSBNMugyHD8i+a+eQ+1/ZQHhhJqNNOUsukXJJgtJJ8kbR6HH DGYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=coVilMxGoWMdLOh9DtrKsbuaCfNB/md2nBZyohxFz50=; b=QazsDixD+t7QHvD5ebuCJodItitHhvG7xM0FFHvty01gxWhlXHsn7lqUfFfQLMcbgP Xudtou4qAa2IgOPttzHTCn3iTUuL4no37KlvKsSOibq+OGooJbONR47nVUEPPC2uCz2j FNXs+jP8TvtLlpnQ8nfO/+g+oth5Hofo1PaiU8chog8ahr7Im9xHZsxAa4pbPjl26EDf Jm8/FZtFIR+xY6VDelhLYluGuGQpQVheL/zd5NJJFQ842OE5MmNUzAdxC4+Q2C0dMMIx Lq9PriYfucdyhcqvQJeguNULKkUnVp5MFPRuFYLpYsh+1xqt9+l5WMaJQMdwMj+lDeVe IK8Q== X-Gm-Message-State: AOAM5300rp4jsho2oEqi6yhJ/ILHotjD/ib/XjEYIWqTlOxRsg2PIxpL p6gqe/s0PCyIjLmDcYA2BbvFh7wMq+NkUzc1Hxs= X-Google-Smtp-Source: ABdhPJzS90ZK/d4mwlQr9EW1MTwThiglgJrI30tJYQ+BmON8fjnhUXw1DuwlT9O1yLRAEuk8vlcWgw== X-Received: by 2002:a7b:ce17:: with SMTP id m23mr966441wmc.117.1609803281219; Mon, 04 Jan 2021 15:34:41 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id v1sm1426125wmj.31.2021.01.04.15.34.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jan 2021 15:34:40 -0800 (PST) User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: help-guix@gnu.org Subject: No Explicit Python Version Dependency In Package Definitions? Message-ID: <85lfd8qnuv.fsf@beadling.co.uk> Date: Mon, 04 Jan 2021 23:34:38 +0000 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a00:1450:4864:20::32e; envelope-from=phil@beadling.co.uk; helo=mail-wm1-x32e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=E4B5TCpE; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 20DC5940438 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: LA+pnW1qEn8a Hi, It seems standard not to declare python2 or python3 as a dependency on python package definitions - however other dependent python libraries are stated. eg python-scipy will declare dependencies on python-numpy and python-matplotlib - but not on a specific version of python package required to use it. I'm guessing this is to avoid tying packages to specific python releases, but I'm curious about the mechanics. It looks like 'package-with-python2' might be used to allow us to distinguish between python2 and python3, but ignoring the python2 case, I have the following python3 questions: Can we can install python-scipy without installing python3, given python isn't an explicit dependency in the package? Which site-packages directory under what python3 version will be used? A quick check looks that /path/to/profile/lib/python3.8/site-packages is currently used but what makes the decision to put them under python3.8 - especially if python3.8 isn't installed in the profile? What happens if Guix upgrades python3 from 3.8 -> 3.9? How are packages already installed under the 3.8, moved to the new 3.9 python version, is this seamless? If I'm using Guix on top of a foreign distro and don't have python3 installed as part of Guix, will my python-scipy end-up installed for my foreign distro's python install? Any pointers welcome! Thanks, Phil.