From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4PNfA7JDJmE+FQAAgWs5BA (envelope-from ) for ; Wed, 25 Aug 2021 15:20:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EMenOrFDJmFNIAAAB5/wlQ (envelope-from ) for ; Wed, 25 Aug 2021 13:20:49 +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 946441D003 for ; Wed, 25 Aug 2021 15:20:49 +0200 (CEST) Received: from localhost ([::1]:52234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIspk-0004Bw-GL for larch@yhetil.org; Wed, 25 Aug 2021 09:20:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIsoV-0008ON-Fq for help-guix@gnu.org; Wed, 25 Aug 2021 09:19:31 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:46871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIsoS-0008Ct-Oq for help-guix@gnu.org; Wed, 25 Aug 2021 09:19:31 -0400 Received: by mail-wm1-x335.google.com with SMTP id m25-20020a7bcb99000000b002e751bcb5dbso4554907wmi.5 for ; Wed, 25 Aug 2021 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=bYtfByBjSy9UmN8oL8UUp7ONLt4Anbq4m1MYb+GHcgU=; b=ux6wKCno1jiwtcOK0r7ubMg7PKaYaQOa1Y3lU3RKr8jA9PzWjXovlC2pqjLrAMvqj2 VewzbkuxtgIZxM9rDb3rrAmMFKbFgOYPMYrY0mWBrkBSJJMuDeo0Ox4KCIHB0HFGexGg 5YM4QSqykqHn7zyfEjnWriFH/v+uDrQRWrOHKR1fDMOM9EzW/0jgYoY0MRUAriytfYF0 d/GroK86WatlzQRZ5RiCoH96hKw1WdXpkwhJug5JgXQ2dIm9jzAHvYFQyhlGg/4rfZCl Tof3Unqj9IX3XjVTxIK6CYDabwqz+9vNcNQbAufSrs83ruE1EHROL9jedBM6XCcV45wR oyOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=bYtfByBjSy9UmN8oL8UUp7ONLt4Anbq4m1MYb+GHcgU=; b=r5OsIsnDkCoXTB8wy6mC2Dz/K4yrlvjRx0HmYetB2dCkcR7F/CylAO/x7NNeKTMVBl zfLsfRM4x4AGv8Th0N2RVrb6i9Pe1BVjzMStZqtFzZp68g9F3HCJlFehr3AFa3yViiIw YpdoHvmYYt4uCKXveXOMlWu3axXpHTSCr7z2IMI/Yc54va9UskAh5COScQxI0pDiKW4J xLb5K1ImAsas9MMEb1QWSg5z/9tVqRklDD8/RSEXYs9ZP5CMPlMZdwmgLneCqKG5MpT0 GI5B463Prtw4a85hahT6WKNcnE579KTbTMQjDD40zerNsaSvUhHKoV2BtZIOA1QgnRMA CbUA== X-Gm-Message-State: AOAM533MYyBlpo/l8Y5pgM72lwxqUhts7TnNUy/8Zzw/qSgh61ZqGdJR m2hUFUKbtBBGenqbWYFaTQXD8p6cQ5DHdw== X-Google-Smtp-Source: ABdhPJy0UM/uedzW5Bi0iv3JpWJxyobu/Y0mq/OTo9G/mKiTticpVybiShY4vBKcVlhwhCLRkX7Plg== X-Received: by 2002:a7b:c756:: with SMTP id w22mr9340991wmk.169.1629897567293; Wed, 25 Aug 2021 06:19:27 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id e26sm8180263wrc.6.2021.08.25.06.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 06:19:26 -0700 (PDT) From: zimoun To: Wade Zhang Subject: Re: Issue about building python on a foreign distro In-Reply-To: References: Date: Wed, 25 Aug 2021 15:08:00 +0200 Message-ID: <8635qxsmdr.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::335; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x335.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=1629897649; 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=bYtfByBjSy9UmN8oL8UUp7ONLt4Anbq4m1MYb+GHcgU=; b=iaQ8O53SQD2u3oxbfcOCVr1a/JpioJXe71YKRetKYr2cfsFYgonyJ1aAI7bspAcyegtycq lkJvVlt3/KAftHyM7KjHLrOAAMfOSdDomwtVc/Aa1ZStQiOBi2CYndoAAFiZE3ntMudN6/ VtRSc1aiVWoUNzOXM0tZf5elKtQisSp6kCgT/HxqNqrJrZiHULesOkTiEPSnZi9/tgKz9N 1muHjWQVcrihE7rzUFn+768fOR/atn5yPF/RY7ZiSl//J9cqZf/XZoX2/CnNcNlNY3dGKs 2Nj/E2AJbfBAEpk/Hd5fC5uqdJZUZ0GsWxRFd0z8gthxnwiry4bb/3IUxIKBmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629897649; a=rsa-sha256; cv=none; b=HoBMfKnzCLiHDN+FYVCPGFSzwbeNwpEHwH1yC70iCDhzEXvnWvXxtxoYTvUZSWFS0K3vs+ 9a16ceEHpzBY6XT8DBhg2iOWDKz8yOX5bhaoru8A8vQp90y0Oe0STtZnRI4grRefDWYEmy PUoFpGm4oUQdDBAPwfKJfXOwhGHw62ViHSvwDaLF05hM/8UOi7IlA4Apt1aHgB/1F8LqXe Hvyg7qVQ4mZ8Eh9hV/bR5Vy8PIlo+z+TFdZF69iUicY0krFHy2yGly0UCx7mk+TutpGdZl mjpjvJOZ+/rf371Tl8TbZYBXp2IFoipECTR9TnIOhUDD7KPLzRTdGYL0DxuN1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ux6wKCno; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ux6wKCno; 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: 946441D003 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: QKk5wkabRgRB Hi, On Tue, 24 Aug 2021 at 03:30, Wade Zhang wrote: >> > It seems all dependencies installed by Guix are not found. I do not know. I have tried without success: --8<---------------cut here---------------start------------->8--- $ guix environment --pure python --ad-hoc bash curl nss-certs zlib [env]$ export PYENV_ROOT=3D"$HOME/.pyenv" [env]$ export PATH=3D"$PYENV_ROOT/bin:$PATH" [env]$ eval "$(pyenv init --path)" [env]$ pyenv install 3.8.2 --8<---------------cut here---------------end--------------->8--- and it fails about =E2=80=99zlib=E2=80=99. >> > Could you please tell me the reason of these errors and how to fix the= m? >> >> I do not use 'pyenv' and I had bad experience when mixing "package >> manager". To have other Python versions than the default ones, I >> would create variant by using package transformation > > pyenv allows you to set python version for your every project by putting 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. 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. :-) People use =E2=80=99direnv=E2=80=99 with Guix to easily switch from context= /project. Another story. :-) All the best, simon