From 764bda6b9fcc0e17d09e3d6a62b2fa54d7abefc1 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Fri, 31 Dec 2021 11:28:09 +0100 Subject: Simplify patch to avoid installing benchmarks This is a propoper, upstreamable, fix for #1002879. --- debian/changelog | 6 ++++++ .../patches/0001-Avoid-installing-benchmarks.patch | 21 +++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 28 insertions(+) create mode 100644 debian/patches/0001-Avoid-installing-benchmarks.patch create mode 100644 debian/patches/series diff --git a/debian/changelog b/debian/changelog index edab601..90a334b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-pot (0.8.1+dfsg-3) unstable; urgency=medium + + * Greatly simplify patch that avoids installing benchmarks. + + -- Gard Spreemann Fri, 31 Dec 2021 11:27:37 +0100 + python-pot (0.8.1+dfsg-2) unstable; urgency=medium * Add patch to remove benchmarks. (Closes: #1002879) diff --git a/debian/patches/0001-Avoid-installing-benchmarks.patch b/debian/patches/0001-Avoid-installing-benchmarks.patch new file mode 100644 index 0000000..566d747 --- /dev/null +++ b/debian/patches/0001-Avoid-installing-benchmarks.patch @@ -0,0 +1,21 @@ +From: Gard Spreemann +Date: Fri, 31 Dec 2021 11:27:19 +0100 +Subject: Avoid installing benchmarks + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 17bf968..d46ae1c 100644 +--- a/setup.py ++++ b/setup.py +@@ -54,7 +54,7 @@ setup( + author=u'Remi Flamary, Nicolas Courty', + author_email='remi.flamary@gmail.com, ncourty@gmail.com', + url='https://github.com/PythonOT/POT', +- packages=find_packages(), ++ packages=find_packages(exclude=["benchmarks"]), + ext_modules=cythonize(Extension( + name="ot.lp.emd_wrap", + sources=["ot/lp/emd_wrap.pyx", "ot/lp/EMD_wrapper.cpp"], # cython/c++ src files diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ff25b3a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Avoid-installing-benchmarks.patch -- cgit v1.2.3