summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-07-08 21:34:45 +0200
committerGard Spreemann <gspr@nonempty.org>2020-07-08 21:34:45 +0200
commit43aaa3da51895fb3a8cf04fce5c1a6cbe083a779 (patch)
treea71a6cf3f5e1fe8345241b6e5e943127465f029d /debian/patches
parent08d071f2804051d54942e7ea4a90c439ba2bda61 (diff)
Enable Wasserstein Python module.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0009-Keep-POT-optional.patch24
-rw-r--r--debian/patches/0009-Work-around-963955.patch (renamed from debian/patches/0010-Work-around-963955.patch)0
-rw-r--r--debian/patches/series3
3 files changed, 1 insertions, 26 deletions
diff --git a/debian/patches/0009-Keep-POT-optional.patch b/debian/patches/0009-Keep-POT-optional.patch
deleted file mode 100644
index 0324551a..00000000
--- a/debian/patches/0009-Keep-POT-optional.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From: Gard Spreemann <gspr@nonempty.org>
-Date: Thu, 4 Jun 2020 14:37:55 +0200
-Subject: Keep POT optional.
-
----
- src/python/gudhi/wasserstein/barycenter.py | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/src/python/gudhi/wasserstein/barycenter.py b/src/python/gudhi/wasserstein/barycenter.py
-index d67bcde..e376ecc 100644
---- a/src/python/gudhi/wasserstein/barycenter.py
-+++ b/src/python/gudhi/wasserstein/barycenter.py
-@@ -8,7 +8,10 @@
- # - YYYY/MM Author: Description of the modification
-
-
--import ot
-+try:
-+ import ot
-+except ImportError:
-+ print("POT (Python Optimal Transport) package is not installed.")
- import numpy as np
- import scipy.spatial.distance as sc
-
diff --git a/debian/patches/0010-Work-around-963955.patch b/debian/patches/0009-Work-around-963955.patch
index 76eeb500..76eeb500 100644
--- a/debian/patches/0010-Work-around-963955.patch
+++ b/debian/patches/0009-Work-around-963955.patch
diff --git a/debian/patches/series b/debian/patches/series
index 80880a58..ee37db40 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,5 +6,4 @@
0006-Install-Python-module-in-correct-location.patch
0007-Move-towards-reproducible-builds.patch
0008-Don-t-try-to-install-Hera.patch
-0009-Keep-POT-optional.patch
-0010-Work-around-963955.patch
+0009-Work-around-963955.patch