GNU bug report logs -
#68241
[PATCH] gnu: python: Fix sitecustomize.py
Previous Next
Full log
Message #14 received at 68241 <at> debbugs.gnu.org (full text, mbox):
Hi Konrad!
Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:
> * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix
> to deal with situations where it contains "../"
>
> This happens in particular when running Python from a Singularity image
> created by Guix. See https://issues.guix.gnu.org/53258.
>
> Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8
> ---
> gnu/packages/aux-files/python/sitecustomize.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gnu/packages/aux-files/python/sitecustomize.py b/gnu/packages/aux-files/python/sitecustomize.py
> index e2348e0356..82ea91104d 100644
> --- a/gnu/packages/aux-files/python/sitecustomize.py
> +++ b/gnu/packages/aux-files/python/sitecustomize.py
> @@ -37,7 +37,7 @@ import sys
> major_minor = '{}.{}'.format(*sys.version_info)
> site_packages_prefix = os.path.join(
> 'lib', 'python' + major_minor, 'site-packages')
> -python_site = os.path.join(sys.prefix, site_packages_prefix)
> +python_site = os.path.normpath(os.path.join(sys.prefix, site_packages_prefix))
IIRC Josselin had a patch for <https://issues.guix.gnu.org/53258>, but I
can’t find it. Josselin?
Also, do I get it right that the patch you sent fixes more than #53258?
Thanks!
Ludo’.
This bug report was last modified 1 year and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.