3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00
guix/gnu/packages/aux-files
Maxim Cournoyer 874188c0ab
aux-files: sitecustomize: Cleanup and add explanatory comments.
Fixes <https://issues.guix.gnu.org/50105>.

* gnu/packages/aux-files/python/sitecustomize.py: Add a comment explaining the
general idea, and use sys.prefix instead of sys.executable.

(major_minor): Use the unpacking operator (*) to provide the arguments.
(site_packages_prefix): Use os.path.join to form the path.
(python_site): Likewise.  Use sys.prefix instead of sys.executable.
(all_sites_raw): Split on os.path.pathsep.
(sys.path): Directly splice the result in the list.

Suggested-by: Hartmut Goebel <h.goebel@crazy-compilers.com>
Reported-by: Mathieu Othacehe <othacehe@gnu.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-11-11 10:31:32 -05:00
..
chromium gnu: ungoogled-chromium: Update default preferences. 2021-02-21 21:39:38 +01:00
emacs gnu: emacs: Remove obsolete FIXME comment. 2020-03-22 21:17:38 -04:00
linux-libre gnu: linux-libre: Update to 5.14.7. 2021-09-22 14:47:56 -04:00
python aux-files: sitecustomize: Cleanup and add explanatory comments. 2021-11-11 10:31:32 -05:00
guile-launcher.c guile: Leave 'scm_install_gmp_memory_functions' unchanged. 2021-05-25 22:17:38 +02:00
guix.vim gnu: vim: Automatically find vim plugins. 2020-12-20 12:52:51 +02:00
pack-audit.c pack: Add relocation via ld.so and fakechroot. 2020-05-14 17:21:27 +02:00
run-in-namespace.c pack: Relocatable wrapper leaves root available to child processes. 2020-10-31 23:16:43 +01:00