[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
59/75: gnu: python: Normalize sys.prefix in sitecustomize.py.
From: |
guix-commits |
Subject: |
59/75: gnu: python: Normalize sys.prefix in sitecustomize.py. |
Date: |
Sun, 21 Jan 2024 13:21:49 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit d8875d76555faf1a11f6838312bfe4b7f6121d2c
Author: Konrad Hinsen <konrad.hinsen@fastmail.net>
AuthorDate: Thu Jan 4 13:44:19 2024 +0100
gnu: python: Normalize sys.prefix in sitecustomize.py.
* gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix to
deal
with situations where it contains "../", as can happen in relocatable packs.
Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
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))
try:
all_sites_raw = os.environ['GUIX_PYTHONPATH'].split(os.path.pathsep)
- 64/75: gnu: libice: Update to 1.1.1., (continued)
- 64/75: gnu: libice: Update to 1.1.1., guix-commits, 2024/01/21
- 68/75: gnu: openjdk9: Make build reproducible., guix-commits, 2024/01/21
- 69/75: gnu: openjdk10: Make more reproducible., guix-commits, 2024/01/21
- 70/75: gnu: openjdk11: Make more reproducible., guix-commits, 2024/01/21
- 75/75: packages: Silence tar's support for --sort check output., guix-commits, 2024/01/21
- 39/75: gnu: xprop: Update to 1.2.6., guix-commits, 2024/01/21
- 49/75: import: go: Emit new-style package inputs., guix-commits, 2024/01/21
- 50/75: gnu: rust: Add profiling support., guix-commits, 2024/01/21
- 52/75: gnu: openjdk11: Update home page., guix-commits, 2024/01/21
- 55/75: gnu: font-fontna-yasashisa-antique: Remove input labels., guix-commits, 2024/01/21
- 59/75: gnu: python: Normalize sys.prefix in sitecustomize.py.,
guix-commits <=
- 72/75: gnu: openjdk13: Make reproducible., guix-commits, 2024/01/21
- 19/75: gnu: font-linuxlibertine: Install all license files., guix-commits, 2024/01/21
- 26/75: gnu: font-go: Install license files., guix-commits, 2024/01/21
- 27/75: gnu: font-dosis: Remove extraneous files; install license file., guix-commits, 2024/01/21
- 31/75: gnu: font-jetbrains-mono: Remove obsolete phase., guix-commits, 2024/01/21
- 37/75: gnu: libice: Update to 1.1.0., guix-commits, 2024/01/21
- 40/75: gnu: xset: Update to 1.2.5., guix-commits, 2024/01/21
- 47/75: build-system/go: Honor #:parallel-tests?., guix-commits, 2024/01/21
- 60/75: gnu: jemalloc: Build with large page size., guix-commits, 2024/01/21
- 62/75: gnu: mesa: Build asahi driver on aarch64., guix-commits, 2024/01/21