[yade] 01/02: Initialize GUI in IPython 5. (Closes: #856175)

Anton Gladky gladk at moszumanska.debian.org
Sat Feb 25 23:49:24 UTC 2017


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

gladk pushed a commit to branch master
in repository yade.

commit 14120f5fe3de7651482b4b74d09e4eb1cab93b39
Author: Anton Gladky <gladk at debian.org>
Date:   Sun Feb 26 00:47:18 2017 +0100

    Initialize GUI in IPython 5. (Closes: #856175)
---
 debian/patches/08_fix_gui.patch | 21 +++++++++++++++++++++
 debian/patches/series           |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/08_fix_gui.patch b/debian/patches/08_fix_gui.patch
new file mode 100644
index 0000000..88bcd47
--- /dev/null
+++ b/debian/patches/08_fix_gui.patch
@@ -0,0 +1,21 @@
+From: Anton Gladky <gladk at debian.org>
+Date: Sat, 25 Feb 2017 22:30:24 +0100
+Subject: [PATCH] Initialize gui in IPython 5.
+---
+ core/main/main.py.in | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+Index: yade/core/main/main.py.in
+===================================================================
+--- yade.orig/core/main/main.py.in
++++ yade/core/main/main.py.in
+@@ -244,6 +244,9 @@ def userSession(gui='none',qapp=None):
+ 		InteractiveShellEmbed.config=cfg
+ 		InteractiveShellEmbed.banner1=banner+'\n'
+ 		ipshell=InteractiveShellEmbed()
++		# If IPython > 5 one need to initialize graphic gui
++		if ((gui == "qt5" or gui == "qt4")and yade.runtime.ipython_version>=500):
++			ipshell.enable_gui(gui)
+ 		ipshell()
+ 
+ ## run userSession in a way corresponding to the features we use:
diff --git a/debian/patches/series b/debian/patches/series
index b4e6505..9fac079 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_remove_google_analytics.patch
+08_fix_gui.patch

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



More information about the debian-science-commits mailing list