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 uLIcDzRluV7jPgAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 14:46:12 +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 qCU5DUJluV7FVQAA1q6Kng (envelope-from ) for ; Mon, 11 May 2020 14:46:26 +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 C29099411A8 for ; Mon, 11 May 2020 14:46:23 +0000 (UTC) Received: from localhost ([::1]:51608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY9hH-0005Kw-2j for larch@yhetil.org; Mon, 11 May 2020 10:46:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY9h7-0005Kb-Kj for help-guix@gnu.org; Mon, 11 May 2020 10:46:13 -0400 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:41760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jY9h5-0007vG-TR for help-guix@gnu.org; Mon, 11 May 2020 10:46:13 -0400 Received: by mail-io1-xd2f.google.com with SMTP id w11so9935400iov.8 for ; Mon, 11 May 2020 07:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=roylemmon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9LdruTIYld3JZXlRNyoZtGVFWLkRknb86zyXH8chCDY=; b=YKM1wHrD0E2wgMGnXSKSS8BHFbFn0LUfogLj+jns1dnZO5D+URLLpxYBa3C0q+NSdX TSDCGoJIFjQhbmDaWAXsgngHTUO8z7fdAuYiUBBVfkgqPFpf0TotICZWV+c6BG2T/ixw 2eIy+QeqZ9oc0hhzZxYbajlxtgivJcznhnCg78xiCVdcRcGNPwGUoRbpfizkCdbZ4asD R2GVqKBInDo4qIEnwGgPx/rzI16H5slQNFaEVJZX8jRtWGM0Sd8nY8g+smgUJtxknvbx v6uRujprn0Bdm0aiQsN9XEdiSdge+tUammjAGcFL+Mx+WbyI/jC2ZHgjHdJUkoZNBbws +dxA== 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; bh=9LdruTIYld3JZXlRNyoZtGVFWLkRknb86zyXH8chCDY=; b=RqmQ8z5uQiPZkMcQRNl5BttBpLWqdtoOYY3qd5IYArRdK5WfjCPJYDJRiJYashd4HP IG83bKJrc4uJIQpXxlZvlZDtj0x5FAPCIZzyXD9llLrl9881ny7703lltGC2u4LrSd6K GGqEYxNJtW7m77M9Q7teew+BM+rFUUaGA4xlKqAG32twZgtkKAls0y1yGOc5FkLXHUYz ZbDTl7Lr65do91EgpdDNyhHkG6f6KQoKturuQBo/6DmLpN8J+eP2aUH4r4IlGvQd3gF+ ARSdtz/3X5fIHtNqGqbV/KqequImXx8XNY8bWk+UxF62dZTg9ADruniwXn3afwhSTyly sRXg== X-Gm-Message-State: AGi0PuYJO1YU8lp8DddDZNULbeAoZ7Hp7ZDFKWy1ZGBc6USkXs1aI3v1 SdqxDyGL/ctzko7biSR4g5dRn80Wc8U1h0MAH8CBrQ== X-Google-Smtp-Source: APiQypKDiCspUJstwc3Gk8vssP2DE3ftSQFWDLaILxUTO3MF7YUHLkhPkt4PT9JC5MtnJ1aHolgT18uBfNv/M4kFYm0= X-Received: by 2002:a05:6602:2cc4:: with SMTP id j4mr15473224iow.144.1589208370253; Mon, 11 May 2020 07:46:10 -0700 (PDT) MIME-Version: 1.0 References: <17204054aa1.c7f7641481947.5478024093304248300@zoho.com> <4B6E6067-059E-42A0-89D9-C940A5A06B31@lepiller.eu> In-Reply-To: <4B6E6067-059E-42A0-89D9-C940A5A06B31@lepiller.eu> From: Roy Lemmon Date: Mon, 11 May 2020 15:45:59 +0100 Message-ID: Subject: Re: Setting up a python environment To: Julien Lepiller Received-SPF: none client-ip=2607:f8b0:4864:20::d2f; envelope-from=roy@roylemmon.com; helo=mail-io1-xd2f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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-Scanner: scn0 X-Spam-Score: -0.01 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=roylemmon-com.20150623.gappssmtp.com header.s=20150623 header.b=YKM1wHrD; 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-Scan-Result: default: False [-0.01 / 13.00]; GENERIC_REPUTATION(0.00)[-0.54014609735711]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; 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)]; R_DKIM_REJECT(1.00)[roylemmon-com.20150623.gappssmtp.com:s=20150623]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[roylemmon-com.20150623.gappssmtp.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]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[roy@roylemmon.com,help-guix-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; URIBL_BLOCKED(0.00)[zoho.com:email,roylemmon.com:email,gnu.org:url,bitbucket.io:url,lepiller.eu:email]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[help-guix@gnu.org]; DMARC_NA(0.00)[roylemmon.com]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: yEsB/5TonUOx Thanks. I will try that. Cheers Roy. On Mon, 11 May 2020, 15:31 Julien Lepiller, wrote: > Le 11 mai 2020 10:09:40 GMT-04:00, Roy Lemmon a =C3= =A9crit > : > >Thanks sirgazil. That is very helpful. > > > >Yes, it might be that astropy has many dependencies. > > > >I will take a look at that video and also get a better handle on > >packaging. > > > >Cheers > >Roy. > > > > > >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. > >> > > >> > 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/ > >> > >> > >> > >> > > Guix also has a cool import feature that might help you package missing > paekages. You thould try 'guix import pypi -r astropy'. >