mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: pybind11: Install .py files.
* gnu/packages/python-xyz.scm (pybind11)[native-inputs]: Change PYTHON to PYTHON-WRAPPER. [arguments]: Add 'install-python' phase.
This commit is contained in:
parent
ab17297a4d
commit
3cf579e9c2
1 changed files with 12 additions and 1 deletions
|
@ -15407,7 +15407,7 @@ under Python 2.7.")
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python" ,python)
|
`(("python" ,python-wrapper)
|
||||||
|
|
||||||
;; The following dependencies are used for tests.
|
;; The following dependencies are used for tests.
|
||||||
("python-pytest" ,python-pytest)
|
("python-pytest" ,python-pytest)
|
||||||
|
@ -15419,6 +15419,17 @@ under Python 2.7.")
|
||||||
(assoc-ref %build-inputs "catch")
|
(assoc-ref %build-inputs "catch")
|
||||||
"/include/catch"))
|
"/include/catch"))
|
||||||
|
|
||||||
|
#:phases (modify-phases %standard-phases
|
||||||
|
(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)))))))
|
||||||
|
|
||||||
#:test-target "check"))
|
#:test-target "check"))
|
||||||
(home-page "https://github.com/pybind/pybind11/")
|
(home-page "https://github.com/pybind/pybind11/")
|
||||||
(synopsis "Seamless operability between C++11 and Python")
|
(synopsis "Seamless operability between C++11 and Python")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue