From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2lzhLFkKLGHcAgAAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 00:29:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kI4YKFkKLGGOBQAAB5/wlQ (envelope-from ) for ; Sun, 29 Aug 2021 22:29:45 +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 36C5718BFB for ; Mon, 30 Aug 2021 00:29:45 +0200 (CEST) Received: from localhost ([::1]:40680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKTJA-0003tX-9D for larch@yhetil.org; Sun, 29 Aug 2021 18:29:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKTIz-0003tD-PL for help-guix@gnu.org; Sun, 29 Aug 2021 18:29:33 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:43779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKTIy-0002Qt-4Q for help-guix@gnu.org; Sun, 29 Aug 2021 18:29:33 -0400 Received: by mail-lf1-x136.google.com with SMTP id m18so13235025lfl.10 for ; Sun, 29 Aug 2021 15:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hFVN0csuVmr4nncSPxUUWVZbeG2qY/XXRhDpoePGezk=; b=eeSJfNqEVu8MR6nGTqHugbYHR2JV1B1bB0Ht+CdrlZG25KQbEf96oULXBIUHWeJhrd ehUc4u0nIFo20TxHnAg+1OxeeApIfz18a2UrFy/rW8Av8MmksikJ2IF/HQGsdnVb3DnS hFkSpfDnzAWEPFLL4Pfv1dVJSOaPI2c2cO7WnUSkNMo3Ez7Y78hbqDq8dZqsqQ18Enkl CJD74qoFlOtrUvnNSWRUiEoVDok9AP+ZU0nK9ttEcdzT0+urOZYDj01qVjFr92TSjJ2v XF3QLgh604t12gGlRg4BL40AJ6Gk1t51+3qjJneJues0u84tWRMIYe3tXX+McyMqhpL7 9NgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hFVN0csuVmr4nncSPxUUWVZbeG2qY/XXRhDpoePGezk=; b=YdE64D2wAP15iG39WDWQy7qJJjIgMTnZqf9n90DsrxvtAqgbOk8JdqFI0zh8FEZpv7 ftOqz47MPuTd7e6eS+fVTmU1nhhP2przNGVNX2wubJBlrPMyQ0BfZZLstpozAgC0l5Vj mlmdpqYljteVUbgelBc9phmaJtX0TTkDLLv+ACrcyUq7w3kvImYiHDPFTTNGJXkxqbEy eyqkOSLxfukxfcWbYp7rTqQ6Y+loYBarycrKrY1zNNqWJinhxDCltpeqZcPmoqDG7X+X 6eqsd5CJk9VIDRswbS71pqLZUqo7Y1FlYaawTabtnVKfzZn3w9k8Y6G2ams37vR00XqK c0yA== X-Gm-Message-State: AOAM533J0D8yNBlMwQlNJiA7A7JcABimPK9MZWjXaMLhEFhJFVJ41LJY q2nEuDSROc81vxRxlZedwLOXn7ErrZ8LLimhg8Y= X-Google-Smtp-Source: ABdhPJzmV4LlvHQ7AI4TWKRjQrJwLQfQuYRVCApDgyBxxto7Lm/jPzzCUhzx0LaKAVXtg/URo1vqGbcZ1l/OtneX7PA= X-Received: by 2002:a19:c1cc:: with SMTP id r195mr14580101lff.504.1630276169648; Sun, 29 Aug 2021 15:29:29 -0700 (PDT) MIME-Version: 1.0 References: <8635qxsmdr.fsf@gmail.com> In-Reply-To: <8635qxsmdr.fsf@gmail.com> From: Wade Zhang Date: Mon, 30 Aug 2021 06:29:18 +0800 Message-ID: Subject: Re: Issue about building python on a foreign distro To: zimoun Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=dochang@gmail.com; helo=mail-lf1-x136.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630276185; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=hFVN0csuVmr4nncSPxUUWVZbeG2qY/XXRhDpoePGezk=; b=pxmRN+hrwbwN9uaRW45GzmIBaRRgXmfU/IScjGwYXkwHqOPjU1/wFTbemBspbSev6lb8WQ a1czUHdmyznZrkNYUp5SmMEJF+ba5NZf5iZwk7hO7/XEimVqDN9aJQUDncR30SqPtda1M2 7m3wzjbhFVVlxdQcfMAcJwSzexX8K29Q0siQe8r9oZNNPGxRqLEw01lYo5lPzyvOdSbFZg 7nJhsRdJd4adQO9/ycKsu1zS60kYS0C94PzYO97r+8eKQy4BguM7wDnSfsfS0y+XV+iQDk ia39d6vzbFnu8gP/dk171H/HAFbQgwjH1GXYTWThxtIushiK89cJ63tQG+47+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630276185; a=rsa-sha256; cv=none; b=oIImjraV9sDlxSilU5ZeNDUd0Vvc+cgT6CfmHWaM6dL4m+Kz4b4cA9e8h4vBAD/oWldiSB gp+TpbKS6Wz0Qs6pU1Y7ZVzp4OUJ9vuhDi8F7mMQxKgnofhZFN1UBA6EpP4xDlCMP5YKaG hj8NsElrlNkVaRGXD0Brkcjd7/4ZgXLTdCrTP3R5idjXc6O0FU9qy/GmdZtsD4yTWgd8Xc /CRQT0t+Sq2zFPV8UKgtUnQ73uWjwTpnyufhpbdyHRmKydYhOib7asJS32ef2sHKztAI3K SRu0JLgB7M8j/8ew3jY32qMOvM5YXWBt+v+IX8uwHGQfqA/ne/TF2GF3tNhAhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eeSJfNqE; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=eeSJfNqE; dmarc=pass (policy=none) header.from=gmail.com; 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: 36C5718BFB X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: sd9jvp4KpCmP On Wed, Aug 25, 2021 at 9:19 PM zimoun wrote: > > pyenv allows you to set python version for your every project by puttin= g a > > `.python-version` file, and you can easily override the version with an > > environment variable. All you need to do is just setting your `PATH`. = I think > > it's very useful when you're working with multiple projects. > > Personally, I store the output of =E2=80=9Cguix describe -f channels=E2= =80=9D in say the > file channel.scm and I list all the packages the project require in say > the file manifest.scm. Then I can exchange these 2 files are to produce > an environment (temporary profile) or a profile. For instance: > > guix time-machine -C channels.scm -- environment -m manifest.scm > > or > > guix time-machine -C channels.scm -- package -m manifest.scm -p profile > > It becomes really easy to work with multiple projects. :-) Note that > these 2 files are generally versioned with the whole project. Even, > sometime I have several channels.scm files and manifest.scm files for > the same project in order to test. > These days I've learned Guix commands and packaging guides. I've seen the power of Guix. I found that Guix has another advantage that It can manage any other dependencies, for example curl or sqlite, if the project requires them. But it's still weird that Guix cannot be used with non-Guix packages... Anyway thank you for your advice. I'll try it. > The main drawback with the approach is the limitation to the Guix > packages. For instance, two versions of CPython, only. It is really > easy to use more packages from Conda for example. I guess =E2=80=99pyenv= =E2=80=99 > provides similar thing. But you loose on other side. :-) Yes, pyenv can install all versions of CPython and other implementations. = It seems that Guix just removes old releases. Although IMO I can use the feat= ure called transformation. > > People use =E2=80=99direnv=E2=80=99 with Guix to easily switch from conte= xt/project. > Another story. :-) > > > All the best, > simon Best Regards, Wade