Require Python 2.6

This commit is contained in:
Bastian Kleineidam 2010-11-21 10:42:44 +01:00
parent ffcb6017ba
commit 6dcb0e10de
4 changed files with 10 additions and 10 deletions

4
debian/control vendored
View file

@ -2,10 +2,10 @@ Source: linkchecker
Section: web
Priority: optional
Maintainer: Bastian Kleineidam <calvin@debian.org>
Build-Depends: python-all-dev (>= 2.5), debhelper (>= 7), gettext,
Build-Depends: python-all-dev (>= 2.6), debhelper (>= 7), gettext,
cdbs (>= 0.4.43), python-central (>= 0.6), qt4-dev-tools
XS-Python-Standards-Version: 0.4
XS-Python-Version: >= 2.5
XS-Python-Version: >= 2.6
Standards-Version: 3.9.1
Homepage: http://linkchecker.sourceforge.net/

View file

@ -22,13 +22,13 @@
#include "Python.h"
/* require Python >= 2.5 */
/* require Python >= 2.6 */
#ifndef PY_VERSION_HEX
#error please install Python >= 2.5
#error please install Python >= 2.6
#endif
#if PY_VERSION_HEX < 0x02050000
#error please install Python >= 2.5
#if PY_VERSION_HEX < 0x02060000
#error please install Python >= 2.6
#endif
/* user_data type for SAX calls */

View file

@ -21,8 +21,8 @@ Main function module for link checking.
# imports and checks
import sys
if not (hasattr(sys, 'version_info') or
sys.version_info < (2, 5, 0, 'final', 0)):
raise SystemExit("This program requires Python 2.5 or later.")
sys.version_info < (2, 6, 0, 'final', 0)):
raise SystemExit("This program requires Python 2.6 or later.")
import os
import re

View file

@ -21,8 +21,8 @@ Setup file for the distuils module.
import sys
if not (hasattr(sys, 'version_info') or
sys.version_info < (2, 5, 0, 'final', 0)):
raise SystemExit("This program requires Python 2.5 or later.")
sys.version_info < (2, 6, 0, 'final', 0)):
raise SystemExit("This program requires Python 2.6 or later.")
import os
import subprocess
import platform