diff options
| author | stuebinm <stuebinm@in.tum.de> | 2022-04-24 18:43:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-24 18:43:28 +0200 |
| commit | 92fe62e1de5b587ee05d81400d8701558065f814 (patch) | |
| tree | 2f978329eab91f04aa857a835baed4e412d7c4e4 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 1c9c4a8e807703e0414c01a1a05b45cef974e177 (diff) | |
| parent | a3c605936a1d4ac47c61c875cf63b3d9e0b4415d (diff) | |
Merge branch 'master' into nextcloud-secrets
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
| -rw-r--r-- | pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch b/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch new file mode 100644 index 000000000000..5935dbda1265 --- /dev/null +++ b/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch @@ -0,0 +1,26 @@ +diff --git a/src/termplotlib/helpers.py b/src/termplotlib/helpers.py +index 4b67fd0..38a2242 100644 +--- a/src/termplotlib/helpers.py ++++ b/src/termplotlib/helpers.py +@@ -32,7 +32,7 @@ def is_unicode_standard_output(): + + + def get_gnuplot_version(): +- out = subprocess.check_output(["gnuplot", "--version"]).decode() ++ out = subprocess.check_output(["@gnuplot@", "--version"]).decode() + m = re.match("gnuplot (\\d).(\\d) patchlevel (\\d)\n", out) + if m is None: + raise RuntimeError("Couldn't get gnuplot version") +diff --git a/src/termplotlib/plot.py b/src/termplotlib/plot.py +index 0f46b87..1418fd1 100644 +--- a/src/termplotlib/plot.py ++++ b/src/termplotlib/plot.py +@@ -17,7 +17,7 @@ def plot( + ticks_scale: int = 0, + ): + p = subprocess.Popen( +- ["gnuplot"], ++ ["@gnuplot@"], + stdout=subprocess.PIPE, + stdin=subprocess.PIPE, + stderr=subprocess.PIPE, |
