File: 0001-Remove-check-for-python-version.patch

package info (click to toggle)
cf-python 1.3.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,996 kB
  • sloc: python: 51,733; ansic: 2,736; makefile: 78; sh: 2
file content (33 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 74a9b150030b1f01d77929931d6d2455d17f30d6 Mon Sep 17 00:00:00 2001
From: Klaus Zimmermann <klaus_zimmermann@gmx.de>
Date: Wed, 14 Sep 2016 12:10:45 +0200
Subject: Remove check for python version.

The python version in sid at the moment is 2.7.12+.
The + breaks the check, which is superfluous in any case, since
the python2 version is guaranteed to be 2.7 anyway.

Signed-off-by: Klaus Zimmermann <klaus_zimmermann@gmx.de>
---
 cf/__init__.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/cf/__init__.py b/cf/__init__.py
index 6e0a66d..66855f1 100644
--- a/cf/__init__.py
+++ b/cf/__init__.py
@@ -57,14 +57,6 @@ from distutils.version import StrictVersion
 import imp
 import platform
 
-# Check the version of python
-if not (StrictVersion('2.6.0')
-        <= StrictVersion(platform.python_version())
-        < StrictVersion('3.0.0')):
-    raise ValueError(
-        "Bad python version: cf requires 2.6 <= python < 3.0. Got %s" %
-        platform.python_version())
-
 ## Check the version of numpy
 #import numpy
 #if StrictVersion(numpy.__version__) < StrictVersion('1.7'):