diff options
| author | Justin Bedo <cu@cua0.org> | 2021-12-01 13:12:50 +1100 |
|---|---|---|
| committer | Justin Bedo <cu@cua0.org> | 2021-12-01 13:12:50 +1100 |
| commit | 82c8699e435796a747e6faddf2af6f9358516ee7 (patch) | |
| tree | 16f8759b4d07f006631039a17a3260309ae8e139 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 113c1e3574001ed5718a52b89d5f6664c95cea90 (diff) | |
| parent | c30bbcfae7a5cbe44ba4311e51d3ce24b5c84e1b (diff) | |
Merge remote-tracking branch 'origin/master' into r-updates
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, |
