unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Phil <phil@beadling.co.uk>
Cc: help-guix@gnu.org
Subject: Re: Replacing python venv - environment or profile?
Date: Wed, 25 Nov 2020 00:34:15 +0100	[thread overview]
Message-ID: <87y2iqba88.fsf@web.de> (raw)
In-Reply-To: <85r1oifz56.fsf@beadling.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]


Phil <phil@beadling.co.uk> writes:

> I'm new the Guix and considering adopting it as an expansion to my
> current use of Python virtual environments in development and
> production, to include other non-Python packages too.

As far as I see it, guix environment is what you get from a virtualenv,
plus a good deal more. I start more complex programs nowadays by pulling
in their dependencies in a small startup file. The following is my
actual command for running IntelliJ with custom libraries and the
correct libstdc++:

exec -a "$0" guix environment --ad-hoc openjdk@14 openjdk@14:jdk gcc-toolchain@10.2 -- bash -c "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/arne/.guix-profile/lib:$(realpath ~/.guix-profile/lib/libsqlite3.so):/gnu/store/qj38f3vi4q1d7z30hkpaxyajv49rwamb-gcc-10.2.0-lib/lib/:."' IDEA_JDK="$(dirname $(dirname $(realpath $(which java))))" exec -a "$0" bash -x idea-IU-193.6911.18/bin/idea.sh'


I used the environment for something closer to your example for actual
day-work to get a local environment with java 8 and documented that
briefly:

https://www.draketo.de/software/guix-work.html#org07ebedd

    # download and unpack tomcat and enter the folder, then call
    guix environment --ad-hoc icedtea@3.7.0
    bin/startup.sh

I know that this 3-liner does not look so awesome, but it is crazy how
many problems it can solve :-)


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

  parent reply	other threads:[~2020-11-24 23:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24 17:22 Replacing python venv - environment or profile? Phil
2020-11-24 20:44 ` zimoun
2020-11-25 20:21   ` Phil
2020-11-25 22:00     ` zimoun
2020-11-24 23:34 ` Dr. Arne Babenhauserheide [this message]
2020-11-25 20:35   ` Phil
2020-11-25 14:37 ` Christopher Lam
2020-11-25 15:36   ` zimoun
2020-11-25 22:54     ` Christopher Lam
2020-11-25 23:09       ` zimoun
2020-11-29 20:34 ` Maxim Cournoyer

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=87y2iqba88.fsf@web.de \
    --to=arne_bab@web.de \
    --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).