From 073b532612e4cc26513d265eddbd3eec11f3df98 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Tue, 22 Oct 2019 15:18:16 +0200 Subject: Patch to install Python modules in correct location. --- ...-Install-Python-module-in-correct-location.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 debian/patches/0008-Install-Python-module-in-correct-location.patch (limited to 'debian/patches/0008-Install-Python-module-in-correct-location.patch') diff --git a/debian/patches/0008-Install-Python-module-in-correct-location.patch b/debian/patches/0008-Install-Python-module-in-correct-location.patch new file mode 100644 index 00000000..ef99842a --- /dev/null +++ b/debian/patches/0008-Install-Python-module-in-correct-location.patch @@ -0,0 +1,21 @@ +From: Gard Spreemann +Date: Thu, 26 Sep 2019 13:26:22 +0200 +Subject: Install Python module in correct location. + +--- + src/python/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt +index 4c6840f..9954ac5 100644 +--- a/src/python/CMakeLists.txt ++++ b/src/python/CMakeLists.txt +@@ -208,7 +208,7 @@ if(PYTHONINTERP_FOUND) + add_custom_target(python ALL DEPENDS gudhi.so + COMMENT "Do not forget to add ${CMAKE_CURRENT_BINARY_DIR}/ to your PYTHONPATH before using examples or tests") + +- install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install)") ++ install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py install --root=${CMAKE_SOURCE_DIR}/debian/tmp --single-version-externally-managed --install-layout=deb WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") + + # Test examples + if (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.11.0) -- cgit v1.2.3