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 iHUwGNJduV7TOgAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 14:14:42 +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 kGi6FeBduV7jXwAAbx9fmQ (envelope-from ) for ; Mon, 11 May 2020 14:14:56 +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 D0BEC940BFF for ; Mon, 11 May 2020 14:14:53 +0000 (UTC) Received: from localhost ([::1]:34938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY9Cn-0005fF-2x for larch@yhetil.org; Mon, 11 May 2020 10:14:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY97z-00068f-7Z for help-guix@gnu.org; Mon, 11 May 2020 10:09:55 -0400 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:45382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jY97x-0003Ro-F8 for help-guix@gnu.org; Mon, 11 May 2020 10:09:54 -0400 Received: by mail-io1-xd2c.google.com with SMTP id i19so9741317ioh.12 for ; Mon, 11 May 2020 07:09:52 -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=DXZDDq/abnM5dTnmT2W4M2FAEFSbYSNym6vB5QSCmuA=; b=eDCHRowqoldDq3fu+onnK5fhQFIpwvs902lC1ixP6j2atLahqPAAD0UeinBlLzDRNC BSVZPnmhj5y95fWLx5PlCvgrZOXI7J4I3O5XmewbfFCOFTesv+jhxJHwnb/B+iKMfS/L 9wdcGvqsXRoPHQuEIm2nX7NHhL1BV4KPMK4OYslQZRnao8wtJG4QgTwd3q6TJRrWIVjW is7hUyyRKCXbC6VTLFx9E4sMEHKVMGCrlF3rizZR7SAio0CfJ8XrRuNYl0Wq2skCeJly Cr0XL9PnlNK6n5y+FUJ6c5GBTdkc5mfsl4FNyHTzkQYdneq6xg/X7DZ1E9zj3Gdzwy1m kX7w== 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=DXZDDq/abnM5dTnmT2W4M2FAEFSbYSNym6vB5QSCmuA=; b=kXKaqVSo5+xMGPboOThcny6fRpZiWKHEvgoPKt2UD5DxgGyjbyc1adyHaQ/opBc+K1 H/LKNik3KCX0/I2LjT84Ym0VTNjBb0AalJf3x+56P7eLAE12+5T9PLEdfIZD3mKfNSKJ E5wLX1m+egOQuqibOouSlYOS8fDe6gg/JTgU4AxV/BM3UpZojXslqtXeHHoApIAVgRDK j1LVSJvM9hkOLLQWlN/EYHQbJyBt3ddVw301vVp1XZJGm/1AVckIdn/zj9/nf7TVyxKm WMvdr5chtrRugjGJU11A/X4LNC9HNiS/ih7ojece13AOrxelnC8wVIT2gKqRiGc+jfqY D0mQ== X-Gm-Message-State: AGi0PuZmYKuXMyAH5RcxTnC+3NmxXRIaLjqerPjhIOc9oUXkzGZ8MgFz G1/5qsmsBwhkGYL376yQDzinjVgDLpcvpk3sxtPQkQ== X-Google-Smtp-Source: APiQypKntOUfSht+aC8WTrikXx5vfSnnh/Phaa0gL9RYVFUJsiNR6qB5PRbPUdeie6awH3eFKORyW75sh6o5f7kAsdw= X-Received: by 2002:a02:3e06:: with SMTP id s6mr9525822jas.57.1589206191339; Mon, 11 May 2020 07:09:51 -0700 (PDT) MIME-Version: 1.0 References: <17204054aa1.c7f7641481947.5478024093304248300@zoho.com> In-Reply-To: <17204054aa1.c7f7641481947.5478024093304248300@zoho.com> From: Roy Lemmon Date: Mon, 11 May 2020 15:09:40 +0100 Message-ID: Subject: Re: Setting up a python environment To: sirgazil Received-SPF: none client-ip=2607:f8b0:4864:20::d2c; envelope-from=roy@roylemmon.com; helo=mail-io1-xd2c.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" 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=eDCHRowq; 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.54013957185168]; 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]; FREEMAIL_TO(0.00)[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]; 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)[gnu.org:url,roylemmon.com:email,zoho.com:email,bitbucket.io:url]; FROM_HAS_DN(0.00)[]; FORGED_RECIPIENTS_MAILLIST(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: CD2/jTFTLic0 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/ > > > >