From 146a1e2f5bafefaf8782e3e8c94223049987b80f Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Fri, 14 Jan 2022 21:07:02 +0100 Subject: Build the Python modules by direct setup.py invocation The upstream wrapping of setup.py into the outer CMake system used for the rest of the tree is getting a bit unwieldy. --- debian/changelog | 1 + debian/rules | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4d9a4ec7..04eb8652 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,7 @@ gudhi (3.5.0+dfsg-1) unstable; urgency=medium upstream. * Move HTML documentation to libgudhi-dev's doc directory. * Add patch to avoid building Doxygen docs from source root. + * Don't build Python modules using CMake. -- Gard Spreemann Fri, 14 Jan 2022 19:28:42 +0100 diff --git a/debian/rules b/debian/rules index 05677e07..ae189c06 100755 --- a/debian/rules +++ b/debian/rules @@ -54,7 +54,8 @@ override_dh_auto_configure: override_dh_auto_build-arch: dh_auto_build $(DHFLAGS) --builddirectory=build/userversion for py3ver in $(PY3VERS) ; do \ - dh_auto_build $(DHFLAGS) --builddirectory=build-py$$py3ver/userversion ; \ + cd build-py$$py3ver/userversion/src/python ; \ + /usr/bin/python$$py3ver setup.py build ; \ done override_dh_auto_build-indep: @@ -67,9 +68,6 @@ override_dh_auto_test-arch: # but see #901678. ifeq (, $(filter nocheck,$(DEB_BUILD_MAINT_OPTIONS))) dh_auto_test $(DHFLAGS) --no-parallel --builddirectory=build/userversion - for py3ver in $(PY3VERS) ; do \ - dh_auto_test $(DHFLAGS) --no-parallel --builddirectory=build-py$$py3ver/userversion ; \ - done else @echo "Skipping tests due to nocheck flag." endif @@ -77,7 +75,8 @@ endif override_dh_auto_install-arch: dh_auto_install $(DHFLAGS) --builddirectory=build/userversion for py3ver in $(PY3VERS) ; do \ - dh_auto_install $(DHFLAGS) --builddirectory=build-py$$py3ver/userversion ; \ + cd build-py$$py3ver/userversion/src/python ; \ + /usr/bin/python$$py3ver setup.py install --root=../../../../debian/tmp --single-version-externally-managed --install-layout=deb ; \ done mv $(TMPBIN)/Nerve \ -- cgit v1.2.3