[Debian-med-packaging] Bug#742691: please make robust against ad-hoc (pre/post released) versions of cython
Yaroslav Halchenko
debian at onerussian.com
Wed Mar 26 12:43:39 UTC 2014
Package: python-biom-format
Version: 1.2.0-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)
With yesterday's upload of snapshot of cython package (was needed to take care
about compatibility with python3.4) python-biom-format would fail to build:
dh_auto_clean
Traceback (most recent call last):
File "setup.py", line 34, in <module>
cy_version = tuple(map(int, Cython.__version__.split('.')))
ValueError: invalid literal for int() with base 10: '1post0'
dh_auto_clean: python setup.py clean -a returned exit code 1
make[1]: *** [override_dh_auto_clean] Error 1
make[1]: Leaving directory `/tmp/buildd/python-biom-format-1.2.0'
make: *** [clean] Error 2
you could probably simply use standard means such as LooseVersion to compare
python -c 'from distutils.version import LooseVersion as LV; print LV("0.20.1post0") >= LV("0.20.1")'
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the Debian-med-packaging
mailing list