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 2Mh5COVhuV4+AwAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 14:32:05 +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 AE5MBvNhuV4hcAAAbx9fmQ (envelope-from ) for ; Mon, 11 May 2020 14:32:19 +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 02EF6941182 for ; Mon, 11 May 2020 14:32:15 +0000 (UTC) Received: from localhost ([::1]:59736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY9Ta-0004Dj-PW for larch@yhetil.org; Mon, 11 May 2020 10:32:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY9TO-0004CD-VH for help-guix@gnu.org; Mon, 11 May 2020 10:32:03 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:43586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY9TM-0002LN-Gg for help-guix@gnu.org; Mon, 11 May 2020 10:32:02 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id ca97b343; Mon, 11 May 2020 14:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=Fnopgq1779HENOnMlwioJL+QgRKaX7qIPJ1kg2XsBuc=; b=MrRux/wACMxy pi+5z/AUzTpYwV5Qsg6Y70Kxfd3rlmbr5b4lPJ9o9UZNyHukM8rUqZ6cHVOxefxK s1UI5BjCAOVgDNsZ4BuEkYo23pSZjTpBlAjDqFs+iZIAg75PB7nTFIOBJ3bHFCY/ TjrzRSDPt42raHnSHbL72BVxrbtixEZJrvhaM7VyiA8ywGnFdVat+tRl1B146xxp Bm4kiXjGqF7OdN8u9JavOE3fkHbV8wJYapusR81TobzCL2LoD3K1kawqOUg0VMlg jtPd1I1eLM4Rz4W3aYUtHdnmCAVaOlEGUkta1RJXfkw4xOK+YoGHJpYEF7pOnrCy mcYnrea4ZA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 53e0d678 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 11 May 2020 14:31:52 +0000 (UTC) Date: Mon, 11 May 2020 10:31:41 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <17204054aa1.c7f7641481947.5478024093304248300@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Setting up a python environment To: help-guix@gnu.org, Roy Lemmon , sirgazil From: Julien Lepiller Message-ID: <4B6E6067-059E-42A0-89D9-C940A5A06B31@lepiller.eu> Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=MrRux/wA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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-Scan-Result: default: False [0.09 / 13.00]; GENERIC_REPUTATION(0.00)[-0.54014260836751]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.07), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_DKIM_REJECT(1.00)[lepiller.eu:s=dkim]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[lepiller.eu:-]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gnu.org,roylemmon.com,zoho.com]; 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)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[julien@lepiller.eu,help-guix-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; URIBL_BLOCKED(0.00)[bitbucket.io:url,roylemmon.com:email,zoho.com:email,gnu.org:url]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[lepiller.eu : SPF not aligned (relaxed),none] X-TUID: evCb+cwcxZc4 Le 11 mai 2020 10:09:40 GMT-04:00, Roy Lemmon a =C3= =A9crit : >Thanks sirgazil=2E That is very helpful=2E > >Yes, it might be that astropy has many dependencies=2E > >I will take a look at that video and also get a better handle on >packaging=2E > >Cheers >Roy=2E > > >On Mon, 11 May 2020, 14:56 sirgazil, wrote: > >> ---- 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=2E >> > >> > For other linux systems I have used pip to manage python packages >and >> > libraries=2E >> > >> > In guix is the idea that guix replaces pip for managing packages >and >> > libraries ? >> >> I think so, yes, ideally=2E >> >> > So I would create a python-package for any missing python >> > packages ? >> >> Yes=2E >> >> > In the guix package lists, I can find many of the python >> > libraries but there are a few missing that I would like, eg=2E >astropy - >> an >> > astronomy analysis library=2E 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=2E >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)=2E >> >> In practice, though, your projects could require many packages that >are >> not yet in Guix=2E 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=2E To package them all would be a job in itself, >and you >> would not have time to work on your project=2E So, depending on your >> specific case, you might still need to use Python virtual >environments and >> pip to get things done=2E 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=2E >> >> I recommend to watch the https://guix=2Egnu=2Eorg/videos/ for an >introduction >> to packaging=2E >> >> >> >> >> --- >> https://sirgazil=2Ebitbucket=2Eio/ >> >> >> >> Guix also has a cool import feature that might help you package missing pa= ekages=2E You thould try 'guix import pypi -r astropy'=2E