[yade] 01/04: Fix version definition for IPython>1.0.0

Anton Gladky gladk at moszumanska.debian.org
Thu Jan 16 07:02:52 UTC 2014


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

gladk pushed a commit to annotated tag debian/1.07.0-1
in repository yade.

commit 21a2430800b92ad78164bb2694d5e1963b683dbc
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Tue Jan 14 19:43:34 2014 +0100

    Fix version definition for IPython>1.0.0
---
 debian/patches/01_fix_ipython_1.0.patch | 16 ++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/01_fix_ipython_1.0.patch b/debian/patches/01_fix_ipython_1.0.patch
new file mode 100644
index 0000000..174f3c0
--- /dev/null
+++ b/debian/patches/01_fix_ipython_1.0.patch
@@ -0,0 +1,16 @@
+Description: Fix version definition for IPython>1.0.0
+Author: Anton Gladky <gladk at debian.org>
+Applied-Upstream: https://github.com/yade/trunk/commit/1186442aaa0f4a9a318b82b3ce72968ba333ca81
+Last-Update: 2014-01-14
+
+--- yade-1.07.0.orig/py/runtime.py
++++ yade-1.07.0/py/runtime.py
+@@ -7,7 +7,7 @@ hasDisplay=False
+ # find out about which ipython version we use -- 0.10* and 0.11 are supported, but they have different internals
+ import IPython
+ try: # attempt to get numerical version
+-	ipython_version=int(IPython.__version__.split('.',2)[1]) ## convert '0.10' to 10, '0.11.alpha1.bzr.r1223' to 11
++	ipython_version=int(IPython.__version__.split('.')[0])*100 + int(IPython.__version__.split('.')[1])
+ except ValueError:
+ 	print 'WARN: unable to extract IPython version from %s, defaulting to 10'%(IPython.__version__)
+ 	ipython_version=10
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0680b6e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_fix_ipython_1.0.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