diff options
| author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-03-14 20:15:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 20:15:47 +0200 |
| commit | a9926eb5ec9c4df3913b306ff0ca3b9d0ba319b6 (patch) | |
| tree | 0c047f2fcae1ef46cd22922b6a49bfbeb3fa3531 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 93437909af24b6728e447ffbeaef7923f8814f3c (diff) | |
| parent | 8889512934037f08a9d09104d604b231095f8d02 (diff) | |
Merge branch 'master' into xen-4.15-pr
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, |
