gnu: ansible-core: Use GUIX_PYTHONPATH to fix build.

* gnu/packages/admin.scm (ansible-core)[phases]{preserve-pythonpath}: Replace
PYTHONPATH by GUIX_PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-10-31 22:59:12 -04:00
parent bd771edd6c
commit 91bb9cb3a9
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2569,7 +2569,7 @@ (define bin (string-append (assoc-ref outputs "out") "/bin"))
(lambda _
(substitute* "test/lib/ansible_test/_internal/ansible_util.py"
(("PYTHONPATH=get_ansible_python_path\\(args\\)" all)
(string-append all "+ ':' + os.environ['PYTHONPATH']")))))
(string-append all "+ ':' + os.environ['GUIX_PYTHONPATH']")))))
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "lib/ansible/module_utils/compat/selinux.py"