[pyzo] 01/04: Use registered entry point instead of launcher script.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon May 30 22:07:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository pyzo.

commit ca40506f5019b90db5f0d5c9f27fbe35fa0eb9be
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu May 12 11:34:49 2016 +0100

    Use registered entry point instead of launcher script.
---
 debian/pyzo.install | 3 +--
 debian/pyzo.links   | 2 +-
 debian/rules        | 8 +++++---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/debian/pyzo.install b/debian/pyzo.install
index 56c700f..2a838b0 100644
--- a/debian/pyzo.install
+++ b/debian/pyzo.install
@@ -1,4 +1,3 @@
-usr/share/pyzo/*
+usr/share/pyzo/
 debian/pyzo.desktop usr/share/applications/
 pyzo.appdata.xml usr/share/appdata/
-pyzolauncher.py usr/share/pyzo/
diff --git a/debian/pyzo.links b/debian/pyzo.links
index 7713b50..d980f15 100644
--- a/debian/pyzo.links
+++ b/debian/pyzo.links
@@ -1,4 +1,4 @@
-usr/share/pyzo/pyzolauncher.py usr/bin/pyzo
+usr/share/pyzo/run usr/bin/pyzo
 usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf usr/share/pyzo/pyzo/resources/fonts/DejaVuSansMono-Bold.ttf
 usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf usr/share/pyzo/pyzo/resources/fonts/DejaVuSansMono-BoldOblique.ttf
 usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf usr/share/pyzo/pyzo/resources/fonts/DejaVuSansMono-Oblique.ttf
diff --git a/debian/rules b/debian/rules
index 1c332c9..a1043de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,15 +4,17 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_DISABLE=test
-export PYBUILD_INSTALL_ARGS=--install-layout=deb \
-	--install-lib=/usr/share/pyzo
+export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/pyzo
+export PYBUILD_AFTER_INSTALL=mv {destdir}/usr/bin/pyzo \
+	{destdir}/usr/share/pyzo/run
 
 %:
 	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b html doc build/html
+	PYTHONPATH=. http_proxy='127.0.0.1:9' \
+		sphinx-build -N -b html doc build/html
 
 override_dh_installchangelogs:
 	dh_installchangelogs RELEASE_NOTES.md

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyzo.git



More information about the debian-science-commits mailing list