unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Wade Zhang <dochang@gmail.com>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Issue about building python on a foreign distro
Date: Tue, 24 Aug 2021 03:30:34 +0800	[thread overview]
Message-ID: <CANBNyksdcJvGQLnsci=wpYFdTv58edsCA92CO95et23290n-gw@mail.gmail.com> (raw)
In-Reply-To: <CAJ3okZ3uMjAeWEBV6Zo+zHiOK43WpUtZiqjsWEG6JSQAg28kZg@mail.gmail.com>

On Tue, Aug 24, 2021 at 12:41 AM zimoun <zimon.toutoune@gmail.com> wrote:
>
> Hi,
>
> Welcome! :-)

Thank you for your reply!

> > It seems all dependencies installed by Guix are not found.
>
> Well, do you do
>
>   source ~/.guix-profile/etc/profile
>
> after installing all the dependencies (gcc-toolchain, bzip2, etc.)

I'm sure I did.  Is there anything I missed?

```
doc@VM-8-2-debian:~$ env | grep ^PATH
PATH=/home/doc/.yarn/bin:/home/doc/.cargo/bin:/home/doc/bin:/home/doc/.anyenv/envs/pyenv/shims:/home/doc/.anyenv/envs/pyenv/bin:/home/doc/.anyenv/bin:/home/doc/.guix-profile/bin:/home/doc/.guix-profile/sbin:/home/doc/.config/guix/current/bin:/home/doc/.guix-profile/bin:/home/doc/.guix-profile/sbin:/home/doc/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
doc@VM-8-2-debian:~$ env | grep GUIX_PROFILE
GUIX_PROFILE=/home/doc/.guix-profile
_GUIX_PROFILE=/home/doc/.config/guix/current
doc@VM-8-2-debian:~$ command -v gcc
/home/doc/.guix-profile/bin/gcc
```

>
> > Could you please tell me the reason of these errors and how to fix them?
>
> I do not use 'pyenv' and I had bad experience when mixing "package
> manager".  To have other Python versions than the default ones, I
> would create variant by using package transformation

pyenv allows you to set python version for your every project by putting a
`.python-version` file, and you can easily override the version with an
environment variable.  All you need to do is just setting your `PATH`.  I think
it's very useful when you're working with multiple projects.

>
>   guix build python
> --with-source=python=https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tar.xz
>
> but there is no guarantee it works for all the versions. Well, I would
> start by a package transformation at the command-line and if it fails
> then compile --without-tests or create a package variant and use
> --load-path.
>
>
> Hope that helps,
> simon


  reply	other threads:[~2021-08-23 19:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22 11:27 Issue about building python on a foreign distro Wade Zhang
2021-08-23 16:41 ` zimoun
2021-08-23 19:30   ` Wade Zhang [this message]
2021-08-25 13:08     ` zimoun
2021-08-29 22:29       ` Wade Zhang
2021-09-16 11:24 ` Hartmut Goebel

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='CANBNyksdcJvGQLnsci=wpYFdTv58edsCA92CO95et23290n-gw@mail.gmail.com' \
    --to=dochang@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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).