gnu: ansible: Use GUIX_PYTHONPATH in the search path specification.

* gnu/packages/admin.scm (ansible)[native-search-paths]: Use GUIX_PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2022-03-28 13:46:47 -04:00
parent 7d136be00f
commit e91a525858
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -2706,15 +2706,15 @@ provides the following commands:
(build-system python-build-system)
(propagated-inputs
(list ansible-core))
;; The Ansible collections are found by ansible-core via PYTHONPATH; the
;; following search path ensures that they are found even when Python is
;; not present in the profile.
;; The Ansible collections are found by ansible-core via the Python search
;; path; the following search path ensures that they are found even when
;; Python is not present in the profile.
(native-search-paths
;; XXX: Attempting to use (package-native-search-paths python)
;; here would cause an error about python being an unbound
;; variable in the tests/cpan.scm test.
(list (search-path-specification
(variable "PYTHONPATH")
(variable "GUIX_PYTHONPATH")
(files (list "lib/python3.9/site-packages")))))
(home-page "https://www.ansible.com/")
(synopsis "Radically simple IT automation")