Browse Source

Drop support for Python 2.4, due to missing features in gettext modules.

tags/0.6.0
ShyPike 15 years ago
parent
commit
d82a58799c
  1. 10
      INSTALL.txt
  2. 4
      SABHelper.py
  3. 8
      SABnzbd.py

10
INSTALL.txt

@ -47,12 +47,11 @@ Use the "Help" button in the web-interface to be directed to the Help Wiki.
You need to have Python installed and some modules. You need to have Python installed and some modules.
Unix/Linux/OSX Unix/Linux/OSX
Python-2.4.4 http://www.python.org Python-2.5 or 2.6 http://www.python.org
OR
Python-2.5.4 http://www.python.org
Windows Windows
Python-2.5.latest http://www.activestate.com Python-2.5.latest http://www.activestate.com
Python-2.6.latest
Essential modules Essential modules
cheetah-2.0.1+ http://www.cheetahtemplate.org/ cheetah-2.0.1+ http://www.cheetahtemplate.org/
@ -61,16 +60,13 @@ Essential modules
par2cmdline >= 0.4 http://parchive.sourceforge.net/ par2cmdline >= 0.4 http://parchive.sourceforge.net/
http://chuchusoft.com/par2_tbb/index.html (multi-core) http://chuchusoft.com/par2_tbb/index.html (multi-core)
Essential modules for python 2.4 ONLY
pysqlite3 >= 2.3.4 http://pysqlite.org (python-pysqlite2)
Optional modules Optional modules
unrar >= 3.90+ http://www.rarlab.com/rar_add.htm unrar >= 3.90+ http://www.rarlab.com/rar_add.htm
unzip >= 5.52 http://www.info-zip.org/ unzip >= 5.52 http://www.info-zip.org/
gnu gettext http://www.gnu.org/software/gettext/ gnu gettext http://www.gnu.org/software/gettext/
Optional modules Windows Optional modules Windows
pyopenssl >= 0.10 http://pypi.python.org/pypi/pyOpenSSL pyopenssl >= 0.11 http://pypi.python.org/pypi/pyOpenSSL
(Binaries, including the OpenSSL libraries) (Binaries, including the OpenSSL libraries)
Optional modules Unix/Linux/OSX Optional modules Unix/Linux/OSX

4
SABHelper.py

@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import sys import sys
if sys.version_info < (2,4): if sys.version_info < (2,5):
print "Sorry, requires Python 2.4 or higher." print "Sorry, requires Python 2.5 or higher."
sys.exit(1) sys.exit(1)
import os import os

8
SABnzbd.py

@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import sys import sys
if sys.version_info < (2,4): if sys.version_info < (2,5):
print "Sorry, requires Python 2.4 or higher." print "Sorry, requires Python 2.5 or higher."
sys.exit(1) sys.exit(1)
import logging import logging
@ -37,7 +37,7 @@ except ValueError:
print "Sorry, requires Python module Cheetah 2.0rc7 or higher." print "Sorry, requires Python module Cheetah 2.0rc7 or higher."
sys.exit(1) sys.exit(1)
except: except:
print "The following modules need to be installed: Cheetah, cherrypy(included, unpack the zip), sqlite(if python 2.4)" print "The following modules need to be installed: Cheetah, cherrypy(included, unpack the zip)"
sys.exit(1) sys.exit(1)
import cherrypy import cherrypy
@ -56,7 +56,7 @@ except:
from pysqlite2.dbapi2 import version as sqlite3_version from pysqlite2.dbapi2 import version as sqlite3_version
except: except:
if os.name != 'nt': if os.name != 'nt':
print "Sorry, requires Python module sqlite3 (pysqlite2 in python2.4)" print "Sorry, requires Python module sqlite3"
print "Try: apt-get install python-pysqlite2" print "Try: apt-get install python-pysqlite2"
sys.exit(1) sys.exit(1)
else: else:

Loading…
Cancel
Save