unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Phil <phil@beadling.co.uk>, help-guix@gnu.org
Subject: Re: Avoiding PYTHONPATH - latest?
Date: Tue, 01 Dec 2020 13:39:39 +0100	[thread overview]
Message-ID: <86mtyxvgxg.fsf@gmail.com> (raw)
In-Reply-To: <85zh2yq413.fsf@beadling.co.uk>

Hi,
On Mon, 30 Nov 2020 at 15:04, Phil <phil@beadling.co.uk> wrote:

> I 100% agree it's a bad idea to mix packagers, but pip install's use-cases go
> beyond the need to do fixed installs of package@version, provided by
> Guix.

I am not sure to understand what you mean.  Installing always means
“fixed at package@version”.  I should miss something with your
workflow.


> Given that Guix profile's can't be edited from within a Guix profile
> (for obvious reasons), if I want to edit my code whilst it is installed,
> I see the only way to do this is by having a virtual env on top of a
> Guix profile that contains only my own module - with the Guix profile
> holding Python and all the imports I depend on.

This is a bad practise and should not be encouraged.  All in all, you
end up with the big mess that Guix is trying to fix.

For example, I am using Emacs and before I was using ’use-package’ which
allows to locally tweak the packages that I depend on.  Then, I wanted
to do the same with Guix.  At the end, it is wrong.  The right thing is
inspect the package and if you need to fix, do “guix build -S <pkg>”,
fix and create a variant using package transformation, for instance.
This way, you have something reproducible, easy to share and/or deploy.
IMHO.


> Perhaps the simple answer here is never mix pip and guix, and setup your
> development environment so there is never a requirement on pip.  But this is
> a limitation to people used to working this way.

My point of view is use pip or Guix, not both.  I was using Conda to
manage my Python stuff.  And same, I wanted to reproduce my Conda habits
with Guix.

Yeah, Guix changes the working habits, and as any changing habits, we
often do not like at first.  But, somehow it is only an habit.  And as
sugar in coffee, you need 3 weeks of complaints and then you will even
forget the taste of sugar. ;-)


> If nothing else, personally, it was a good off-the-deep-end way to get under the
> covers of Guix's treatment of python and python packages :-)

We discussed at the recent Guix Days that documentation “Getting
starting with X” is lacking–where X is Python, R, C, Haskell, etc.

Feel free to send a Cookbook recipe [1] about your Python setup. :-)

1: <https://guix.gnu.org/cookbook/en>


All the best,
simon



  reply	other threads:[~2020-12-01 12:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30  0:22 Avoiding PYTHONPATH - latest? Phil
2020-11-30  9:41 ` Phil
2020-12-03 11:06   ` 宋文武
2020-11-30 13:05 ` zimoun
2020-11-30 15:04   ` Phil
2020-12-01 12:39     ` zimoun [this message]
2020-12-01 13:28       ` Phil
2020-12-01 14:54         ` zimoun
2020-12-01 18:46           ` Phil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mtyxvgxg.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=phil@beadling.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).