mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-27 19:35:10 -06:00
gnu: pybind11: Add python-setuptools native-inputs, improve style.
* gnu/packages/python-xyz.scm (pybind11) [native-inputs]: Drop labels, add python-setuptools. [arguments]<#:configure-flags>: Adapt for catch label change. <#:phases>: Improve style. Change-Id: I3171c79e079be0ebeda072412b3a9173c61713ff Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
f7959521cf
commit
857a484bd0
1 changed files with 16 additions and 18 deletions
|
|
@ -26765,36 +26765,34 @@ binding is created using the standard @code{ctypes} library.")
|
|||
"1dbnki0pnky39kr04afd9ks597bzjc530zbk33jjss53nfvdvlj8"))
|
||||
(file-name (git-file-name name version))))
|
||||
(build-system cmake-build-system)
|
||||
(native-inputs
|
||||
`(("python" ,python-wrapper)
|
||||
|
||||
;; The following dependencies are used for tests.
|
||||
("python-pytest" ,python-pytest)
|
||||
("catch" ,catch2-1)
|
||||
("eigen" ,eigen)))
|
||||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
#~(list (string-append "-DCATCH_INCLUDE_DIR="
|
||||
(assoc-ref %build-inputs "catch")
|
||||
"/include/catch"))
|
||||
(assoc-ref %build-inputs "catch2")
|
||||
"/include/catch"))
|
||||
#:modules '((guix build cmake-build-system)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:rest args)
|
||||
(lambda args
|
||||
(apply (assoc-ref gnu:%standard-phases 'check) args)))
|
||||
(add-after 'install 'install-python
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(with-directory-excursion "../source"
|
||||
(setenv "PYBIND11_USE_CMAKE" "yes")
|
||||
(invoke "python" "setup.py" "install"
|
||||
"--single-version-externally-managed"
|
||||
"--root=/"
|
||||
(string-append "--prefix=" out)))))))))
|
||||
(lambda _
|
||||
(with-directory-excursion "../source"
|
||||
(setenv "PYBIND11_USE_CMAKE" "yes")
|
||||
(invoke "python" "setup.py" "install"
|
||||
"--single-version-externally-managed"
|
||||
"--root=/"
|
||||
(string-append "--prefix=" #$output))))))))
|
||||
(native-inputs
|
||||
(list catch2-1
|
||||
eigen
|
||||
python-pytest
|
||||
python-setuptools
|
||||
python-wrapper))
|
||||
(home-page "https://github.com/pybind/pybind11/")
|
||||
(synopsis "Seamless operability between C++11 and Python")
|
||||
(description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue