[SCM] mediagoblin/master: Install command-line tool as symlink to default version library.
js at users.alioth.debian.org
js at users.alioth.debian.org
Mon Aug 21 18:02:05 UTC 2017
The following commit has been merged in the master branch:
commit 52e9c9380e382aa9e35f59059aa5d14e2a581949
Author: Jonas Smedegaard <dr at jones.dk>
Date: Mon Aug 21 16:41:11 2017 +0200
Install command-line tool as symlink to default version library.
diff --git a/debian/mediagoblin.links b/debian/mediagoblin.links
new file mode 100644
index 0000000..419e3d7
--- /dev/null
+++ b/debian/mediagoblin.links
@@ -0,0 +1 @@
+/usr/share/mediagoblin/python3/bin/gmg /usr/bin/gmg
diff --git a/debian/rules b/debian/rules
index 3cf3d55..7ffccda 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,10 +20,16 @@
include /usr/share/dpkg/pkg-info.mk
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
+# handle Python libraries
+# * add symlink to provide a deterministic path for main package
python3_default = $(shell py3versions -d)
export PYBUILD_NAME = mediagoblin
export PYBUILD_INSTALL_ARGS = \
- --install-scripts='/usr/share/mediagoblin/'
+ --install-scripts='/usr/share/mediagoblin/{interpreter}/bin/'
+export PYBUILD_AFTER_INSTALL = \
+ if test '$(python3_default)' = '{interpreter}'; then \
+ ln -sT '{interpreter}' '{destdir}/usr/share/mediagoblin/python3'; \
+ fi
export PYBUILD_TEST_PYTEST = 1
%:
--
mediagoblin packaging
More information about the pkg-multimedia-commits
mailing list