[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: gnu: pybind11: Install .py files.
From: |
guix-commits |
Subject: |
06/09: gnu: pybind11: Install .py files. |
Date: |
Mon, 10 Feb 2020 17:35:00 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 3cf579e9c24a98c3bac456d064270e8dc8b2086a
Author: Ludovic Courtès <address@hidden>
AuthorDate: Mon Feb 10 22:40:36 2020 +0100
gnu: pybind11: Install .py files.
* gnu/packages/python-xyz.scm (pybind11)[native-inputs]: Change PYTHON
to PYTHON-WRAPPER.
[arguments]: Add 'install-python' phase.
---
gnu/packages/python-xyz.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0f16ac0..b47e395 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15407,7 +15407,7 @@ under Python 2.7.")
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(native-inputs
- `(("python" ,python)
+ `(("python" ,python-wrapper)
;; The following dependencies are used for tests.
("python-pytest" ,python-pytest)
@@ -15419,6 +15419,17 @@ under Python 2.7.")
(assoc-ref %build-inputs "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"))
(home-page "https://github.com/pybind/pybind11/")
(synopsis "Seamless operability between C++11 and Python")
- branch master updated (8a0dd28 -> 50e96d2), guix-commits, 2020/02/10
- 01/09: git: Add missing exports for <git-checkout>., guix-commits, 2020/02/10
- 02/09: gnu: pybind11: Change 'license' field to BSD-3., guix-commits, 2020/02/10
- 07/09: gnu: Add python-pytools., guix-commits, 2020/02/10
- 04/09: gnu: pybind11: Add dependency on Catch and Eigen., guix-commits, 2020/02/10
- 06/09: gnu: pybind11: Install .py files.,
guix-commits <=
- 03/09: gnu: pybind11: Update to 2.4.3., guix-commits, 2020/02/10
- 08/09: gnu: Add python-pyopencl., guix-commits, 2020/02/10
- 05/09: gnu: pybind11: Tweak description., guix-commits, 2020/02/10
- 09/09: gnu: geoclue: Update to 2.5.5, guix-commits, 2020/02/10