Ported to Python 2.4

This commit is contained in:
Bastian Kleineidam 2010-03-04 16:05:08 +01:00
parent 44726ecdea
commit 70a7fc2ae2
4 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,7 @@
0.5 "" (released xx.xx.2010) 0.5 "" (released xx.xx.2010)
* Ported to Python 2.4.
0.4 "Nikita" (released 3.3.2010) 0.4 "Nikita" (released 3.3.2010)
* Added support for Windows systems. * Added support for Windows systems.

View File

@ -0,0 +1,2 @@
- Support lzip archives
- Support zoo archives

4
patool
View File

@ -18,8 +18,8 @@
patool [extract|list] [sub-command-options] <archive-file> patool [extract|list] [sub-command-options] <archive-file>
""" """
import sys import sys
if not hasattr(sys, "version_info") or sys.version_info < (2, 5, 0, "final", 0): if not hasattr(sys, "version_info") or sys.version_info < (2, 4, 0, "final", 0):
raise SystemExit("Error, this script needs Python >= 2.5 installed") raise SystemExit("This program requires Python 2.4 or later.")
from patoolib import handle_archive, list_formats, baker from patoolib import handle_archive, list_formats, baker

View File

@ -19,9 +19,8 @@ Setup file for the distuils module.
""" """
import sys import sys
if not (hasattr(sys, 'version_info') or if not hasattr(sys, "version_info") or sys.version_info < (2, 4, 0, "final", 0):
sys.version_info < (2, 5, 0, 'final', 0)): raise SystemExit("This program requires Python 2.4 or later.")
raise SystemExit("This program requires Python 2.5 or later.")
import os import os
from distutils.core import setup from distutils.core import setup