guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: build: python: Fix build phases ordering.


From: guix-commits
Subject: branch core-updates updated: build: python: Fix build phases ordering.
Date: Wed, 03 Feb 2021 17:05:34 -0500

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 157b302  build: python: Fix build phases ordering.
157b302 is described below

commit 157b3020114c985068d8da49c30306d169e556d2
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Feb 3 16:47:10 2021 -0500

    build: python: Fix build phases ordering.
    
    The wrap phase was happening before the installed site location was added to
    GUIX_PYTHONPATH, causing wrapped commands to not find their own Python
    libraries.
    
    * guix/build/python-build-system.scm (%standard-phases): Explicit the
    sequential ordering of phases using add-after directives, so that the wrap
    phase occurs after the add-install-to-pythonpath and add-install-to-path
    phases.
---
 guix/build/python-build-system.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/guix/build/python-build-system.scm 
b/guix/build/python-build-system.scm
index 1fc97d1..8ade1d5 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -302,10 +302,11 @@ by Cython."
     (replace 'build build)
     (delete 'check)                     ;moved after the install phase
     (replace 'install install)
-    (add-after 'install 'check check)
-    (add-after 'install 'wrap wrap)
-    (add-before 'check 'add-install-to-pythonpath add-install-to-pythonpath)
-    (add-before 'check 'add-install-to-path add-install-to-path)
+    (add-after 'install 'add-install-to-pythonpath add-install-to-pythonpath)
+    (add-after 'add-install-to-pythonpath 'add-install-to-path
+      add-install-to-path)
+    (add-after 'add-install-to-path 'wrap wrap)
+    (add-after 'wrap 'check check)
     (add-after 'check 'sanity-check sanity-check)
     (add-before 'strip 'rename-pth-file rename-pth-file)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]