diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-17 17:44:59 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-11-20 01:06:33 +0000 |
| commit | 27ba3604d47f741a09357164022aecea09c281c3 (patch) | |
| tree | 652061748d882de4ed8c600216bba4cecaac24e8 | |
| parent | 62ea5f58528ad9808f9ac99cbee1cd2ed5e286d5 (diff) | |
build-system: pyproject: Add -sP flags for entry-point wrapper.
Fixes guix/guix#1118.
-P: prevents adding current working directory or script's directory to
the search path for modules.
-s: Prevent USER site-packages
directory (~/.local/lib/pythonX.Y[t]/site-packages) from being
included in the search path for modules.
* guix/build/pyproject-build-system (create-entrypoints)
[create-script]: Add -sP flags, improve pythonic style.
Change-Id: Iabc7bb59bf08be1e0c662a069a30ae17a53c7fd5
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | guix/build/pyproject-build-system.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/build/pyproject-build-system.scm b/guix/build/pyproject-build-system.scm index 759cdc38d74..b7ac0259639 100644 --- a/guix/build/pyproject-build-system.scm +++ b/guix/build/pyproject-build-system.scm @@ -346,7 +346,7 @@ and return write it to PATH/NAME." ;; Technically the script could also include search-paths, ;; but having a generic 'wrap phases also handles manually ;; written entry point scripts. - (format port "#!~a + (format port "#!~a -sP # Auto-generated entry point script. import sys from ~a import ~a |
