From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iJC2NXZZuV74dgAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 13:56:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AHQIM4RZuV6UNgAA1q6Kng (envelope-from ) for ; Mon, 11 May 2020 13:56:20 +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 7098E941182 for ; Mon, 11 May 2020 13:56:18 +0000 (UTC) Received: from localhost ([::1]:42786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY8uo-0007qq-60 for larch@yhetil.org; Mon, 11 May 2020 09:56:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY8ue-0007pU-0v for help-guix@gnu.org; Mon, 11 May 2020 09:56:08 -0400 Received: from sender4-pp-o93.zoho.com ([136.143.188.93]:25332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jY8uc-00084P-TF for help-guix@gnu.org; Mon, 11 May 2020 09:56:07 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1589205362; cv=none; d=zohomail.com; s=zohoarc; b=KOdH1Ihlqi23/H70sMwbu52ldK3jyKQt7imhLRSlkReuj6+RCfPHNXYbXHyM1z786CCgrWc46vqG96r/pwHpfE584jP1xMrF4HhmuXw+vlaeO9tjDxbpO5j+vaiN3/p80YOHGljvxSz12QwOCvCxgcZ613pms0vvCRv9jrvCdms= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589205362; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=N3J4KNkEjn27zniTKVmhdTGPyADO7mS7osvGdY8d2ck=; b=beLHmbQqFHC0DWnIARderxt0KJmr4g7bLtIPqckVmIPxbQYYiQTjVtd/T4Azq8JkRYfOJ/iQNLUSmipD1kPkPMPumema71jjQ+ZHTZntFAIhq0H/8v6OlPYO2ZA6HnhP95DRG4KKYY7q86mQy4lJQgCRtHU5zsTEGxuoqNz7XgQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=sirgazil@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=oOVfKJRV2miKi8Zb7kPtVxNrGaw6aApTz0fXyv8VI73WPxc1B3pO1qECK5j6l8uKWBnbJpnb/5od FTU/ECRUdwJMC2SNcAGcOyw2zUsh6n+UpCHheV79/8T4oUsmvovj DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589205362; s=zm2020; d=zoho.com; i=sirgazil@zoho.com; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=N3J4KNkEjn27zniTKVmhdTGPyADO7mS7osvGdY8d2ck=; b=jFoT5uYi0gHPkrcl6NhmVBsE9HS4Gvb2ZppK6hp/mOwcNvOgep0aYyGB/o7rmkDR zs4oTHsc5CgBpd5LRBjHcGa+/XirGquNfqDGz2WIilQYdbkVsym36PgnxALwtFlJ85N n3eIWOfoyzyfkkb/ovEIY68eUbbPOIrk51EJVVWg= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1589205355170400.19182661465516; Mon, 11 May 2020 06:55:55 -0700 (PDT) Received: from [179.15.13.185] by mail.zoho.com with HTTP;Mon, 11 May 2020 06:55:55 -0700 (PDT) Date: Mon, 11 May 2020 08:55:55 -0500 From: sirgazil To: "Roy Lemmon" Cc: "help-guix" Message-ID: <17204054aa1.c7f7641481947.5478024093304248300@zoho.com> In-Reply-To: References: Subject: Re: Setting up a python environment MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.93; envelope-from=sirgazil@zoho.com; helo=sender4-pp-o93.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/11 09:56:03 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 X-Spam-Score: -2.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zoho.com header.s=zm2020 header.b=jFoT5uYi; dmarc=pass (policy=reject) header.from=zoho.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-Scan-Result: default: False [-2.70 / 13.00]; GENERIC_REPUTATION(0.00)[-0.54011823895565]; XM_UA_NO_VERSION(0.01)[]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail,zoho.com:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[zoho.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.07), country: US(-0.00), ip: 209.51.188.17(-0.54)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[zoho.com,reject]; DKIM_TRACE(0.00)[zoho.com:+]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[sirgazil@zoho.com,help-guix-bounces@gnu.org]; TAGGED_FROM(0.00)[larch=yhetil.org]; RCVD_COUNT_FIVE(0.00)[6]; R_DKIM_ALLOW(-0.20)[zoho.com:s=zm2020]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[zoho.com:dkim,roylemmon.com:email,gnu.org:url,bitbucket.io:url]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RECEIVED_SPAMHAUS_PBL(0.00)[179.15.13.185:received]; ARC_ALLOW(-1.00)[i=1]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: Su8lI1qJhejq ---- On Mon, 11 May 2020 07:34:09 -0500 Roy Lemmon wrote ---- > Hi, > > I would like to ask about the general philosophy of setting up a python > environment under guix. > > For other linux systems I have used pip to manage python packages and > libraries. > > In guix is the idea that guix replaces pip for managing packages and > libraries ? I think so, yes, ideally. > So I would create a python-package for any missing python > packages ? Yes. > In the guix package lists, I can find many of the python > libraries but there are a few missing that I would like, eg. astropy - an > astronomy analysis library. So should I be creating a guix package for that > rather than installing with pip ? That's the idea, yes: to have all Python packages available in Guix. That way, if your projects depend on Python packages and non-Python packages, you can specify all the requirements of your projects conveniently in a Guix manifest file (instead of having a requirements file for pip and another requirements file for some OS package manager, and possibly, another requirements file for another programmnig language used in a project). In practice, though, your projects could require many packages that are not yet in Guix. For example, astropy could depend on other packages that are not available, and those packages depend on other packages that are not available, and so on. To package them all would be a job in itself, and you would not have time to work on your project. So, depending on your specific case, you might still need to use Python virtual environments and pip to get things done. For the latter you can use Python's venv, or poetry, or other tools that are already available in Guix for managing Python projects and environments. I recommend to watch the https://guix.gnu.org/videos/ for an introduction to packaging. --- https://sirgazil.bitbucket.io/