mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 12:54:42 +00:00
Require Python 2.6
This commit is contained in:
parent
ffcb6017ba
commit
6dcb0e10de
4 changed files with 10 additions and 10 deletions
4
debian/control
vendored
4
debian/control
vendored
|
|
@ -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/
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
setup.py
4
setup.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue