GNU bug report logs - #73304
Python in relocatable guix pack leads to wrong sys.path

Previous Next

Package: guix;

Reported by: Rutherther <rutherther <at> protonmail.com>

Date: Mon, 16 Sep 2024 19:24:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>, Rutherther <rutherther <at> protonmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 73304 <at> debbugs.gnu.org, Josselin Poiret <dev <at> jpoiret.xyz>
Subject: bug#73304: Python in relocatable guix pack leads to wrong sys.path
Date: Fri, 31 Jan 2025 15:12:40 +0100
Hi,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> The workaround looks smart (too smart for my tired brain tonight), but
> to be honest I'd rather have Python handle the relative paths correctly,
> or work around it in our sitecustomize.py script that runs early when

That's indeed preferable, but according to my analysis not possible, as
there are situations of faulty startup behavior in which out
sitecustomize.py is not run at all.

What we can envisage is a combination of
 1. patching Python
 2. using realpath rather than normpath in our sitecustomize.py

Cheers,
  Konrad.




This bug report was last modified 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.