]> granicus.if.org Git - graphviz/commitdiff
Use any python version for python bindings
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 12 Apr 2020 14:39:03 +0000 (16:39 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 14 Apr 2020 14:16:14 +0000 (16:16 +0200)
In order to work on Ubuntu 20.04 which does not have a "python" lib,
only "python3" and "python2".

See https://www.fosslinux.com/26413/ubuntu-20-04-lts-focal-fossa-set-to-remove-python-2.htm.

Also needed was to replace pyversion which found only Python 2
versions. Possibly this can done in a better way by someone who
understands Debian packaging in general and Lintian in particular.

See https://lintian.debian.org/tags/debian-pyversions-is-obsolete.html.

debian/libgv-python.install
debian/rules

index 2b952cf14082d50b6ec2fe784708a564b1a7f88e..a4491b8361dcd3793b80de9e4ff87ae813451780 100644 (file)
@@ -1,4 +1,4 @@
-usr/lib/graphviz/python
+usr/lib/graphviz/python*
 #usr/lib/graphviz/python24
 #usr/lib/graphviz/python25
 #usr/lib/graphviz/python26
index 2a7b5b2c722a58ef56f3252d5aa62378c988177a..e7e4630b9a12431384e7428df058faa57428e319 100755 (executable)
@@ -33,7 +33,7 @@ LUA_PACKAGE       = $(CURDIR)/debian/libgv-lua
 
 DEV_PACKAGE       = $(CURDIR)/debian/libgraphviz-dev
 
-PYTHON_VERSIONS   = $(shell pyversions -s)
+PYTHON_VERSIONS   = $(shell python2 --version |& sed 's/.* \(.*\)\..*/\1/'; python3 --version |& sed 's/.* \(.*\)\..*/\1/')
 PYTHON_PACKAGE    = $(CURDIR)/debian/libgv-python
 
 RUBY_VERSION      = 1.8