ok -- done -- see patch attached

On Wed, 26 Mar 2014, Andreas Tille wrote:

> Hi Yaroslav,

> thanks for your bug report.  While I have a vague idea what you might
> mean with your proposed solution I wonder if you might be kind enought /
> find the time to prepare a working patch to make me really sure what
> you mean.

> This would be really helpful

-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate,     Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        
diff -Nru python-biom-format-1.2.0/debian/changelog python-biom-format-1.2.0/debian/changelog
--- python-biom-format-1.2.0/debian/changelog	2013-11-14 02:59:05.000000000 -0500
+++ python-biom-format-1.2.0/debian/changelog	2014-03-26 10:33:09.000000000 -0400
@@ -1,3 +1,10 @@
+python-biom-format (1.2.0-2) unstable; urgency=medium
+
+  * Use LooseVersion to compare against available version
+    of Cython (Closes: #742691).
+
+ -- Yaroslav Halchenko <deb...@onerussian.com>  Wed, 26 Mar 2014 10:32:28 -0400
+
 python-biom-format (1.2.0-1) unstable; urgency=low
 
   * New upstream version
diff -Nru python-biom-format-1.2.0/debian/patches/deb_looseversion_comparison_for_cython python-biom-format-1.2.0/debian/patches/deb_looseversion_comparison_for_cython
--- python-biom-format-1.2.0/debian/patches/deb_looseversion_comparison_for_cython	1969-12-31 19:00:00.000000000 -0500
+++ python-biom-format-1.2.0/debian/patches/deb_looseversion_comparison_for_cython	2014-03-26 10:52:52.000000000 -0400
@@ -0,0 +1,37 @@
+From: Yaroslav Halchenko <deb...@onerussian.com>
+Subject: Use distutils.version.LooseVersion for version comparison for Cython
+
+ Should be more robust to comparing against not-yet-released
+ versions of Cython
+
+Bug-Debian: http://bugs.debian.org/742691
+Forwarded: 
+Applied-Upstream: 
+Last-Update: 2014-03-26
+
+--- a/setup.py
++++ b/setup.py
+@@ -16,6 +16,7 @@ __maintainer__ = "Daniel McDonald"
+ __email__ = "mcdon...@colorado.edu"
+ __status__ = "Development"
+ 
++from distutils.version import LooseVersion
+ 
+ try:
+     import numpy
+@@ -30,12 +31,9 @@ except ImportError:
+ try:
+     import Cython
+     from Cython.Distutils import build_ext
+-    
+-    cy_version = tuple(map(int, Cython.__version__.split('.')))
+-    if cy_version >= (0, 14, 1):
+-        cython_present = True
+-    else:
+-        cython_present = False
++
++    cython_present = LooseVersion(Cython.__version__) >= "0.14.1"
++
+ except ImportError:
+     cython_present = False
+ 
diff -Nru python-biom-format-1.2.0/debian/patches/series python-biom-format-1.2.0/debian/patches/series
--- python-biom-format-1.2.0/debian/patches/series	1969-12-31 19:00:00.000000000 -0500
+++ python-biom-format-1.2.0/debian/patches/series	2014-03-26 10:47:49.000000000 -0400
@@ -0,0 +1 @@
+deb_looseversion_comparison_for_cython

Attachment: signature.asc
Description: Digital signature

Reply via email to