[pybind11] 04/07: Refactor the management of configuration arguments
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 20 15:49:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch experimental
in repository pybind11.
commit bca173266d86ef53fc3c94baae00251b4058202f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu Jul 20 15:59:54 2017 +0100
Refactor the management of configuration arguments
---
debian/rules | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index 96e3168..e9a59ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,14 @@
export PYBUILD_NAME = pybind11
+CONFIGURE_ARGS = -DPYBIND11_INSTALL:BOOL=ON
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+CONFIGURE_ARGS += -DPYBIND11_TEST:BOOL=ON \
+ -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$(shell py3versions -d)
+else
+CONFIGURE_ARGS += -DPYBIND11_TEST:BOOL=OFF
+endif
+
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=cmake
@@ -16,11 +24,8 @@ ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
endif
override_dh_auto_configure:
-ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
- dh_auto_configure -- -DPYBIND11_TEST=ON
-else
- dh_auto_configure -- -DPYBIND11_TEST=OFF
-endif
+ dh_auto_configure -- $(CONFIGURE_ARGS)
+ dh_auto_configure --buildsystem=pybuild
override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pybind11.git
More information about the debian-science-commits
mailing list