summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2021-12-31 11:28:09 +0100
committerGard Spreemann <gspr@nonempty.org>2021-12-31 11:28:09 +0100
commit764bda6b9fcc0e17d09e3d6a62b2fa54d7abefc1 (patch)
tree2a5b93143a3d4732513715c8715926c62253505d
parentdaf8a1d638f08d8d3d1a3976bd8539b0ac0d3711 (diff)
Simplify patch to avoid installing benchmarksdebian/0.8.1+dfsg-3
This is a propoper, upstreamable, fix for #1002879.
-rw-r--r--debian/changelog6
-rw-r--r--debian/patches/0001-Avoid-installing-benchmarks.patch21
-rw-r--r--debian/patches/series1
3 files changed, 28 insertions, 0 deletions
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 <gspr@nonempty.org> 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 <gspr@nonempty.org>
+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