Increased required library versions to Python2.7+, django1.7+ and twisted 12.0+.
This commit is contained in:
parent
bb36f2cb76
commit
35dad76d02
1 changed files with 4 additions and 9 deletions
|
|
@ -629,10 +629,8 @@ def check_evennia_dependencies():
|
||||||
Returns False if a show-stopping version mismatch is found.
|
Returns False if a show-stopping version mismatch is found.
|
||||||
"""
|
"""
|
||||||
# defining the requirements
|
# defining the requirements
|
||||||
python_min = '2.6'
|
python_min = '2.7'
|
||||||
nt_python_min = '2.7'
|
twisted_min = '12.0'
|
||||||
nt_stop_python_min = "2.6"
|
|
||||||
twisted_min = '11.0'
|
|
||||||
django_min = '1.7'
|
django_min = '1.7'
|
||||||
django_rec = '1.7'
|
django_rec = '1.7'
|
||||||
|
|
||||||
|
|
@ -642,11 +640,8 @@ def check_evennia_dependencies():
|
||||||
# Python
|
# Python
|
||||||
pversion = ".".join(str(num) for num in sys.version_info if type(num) == int)
|
pversion = ".".join(str(num) for num in sys.version_info if type(num) == int)
|
||||||
if pversion < python_min:
|
if pversion < python_min:
|
||||||
errstring += "\n WARNING: Python %s used. Evennia recommends version %s or higher (but not 3.x)." % (pversion, python_min)
|
errstring += "\n ERROR: Python %s used. Evennia requires version %s or higher (but not 3.x)." % (pversion, python_min)
|
||||||
if os.name == 'nt' and pversion < nt_python_min:
|
no_error = False
|
||||||
errstring += "\n WARNING: Python %s used. Windows requires v%s or higher in order to" % (pversion, nt_stop_python_min)
|
|
||||||
errstring += "\n restart/stop the server from the command line (Under v%s you" % pversion
|
|
||||||
errstring += "\n may only restart/stop from inside the game.)"
|
|
||||||
# Twisted
|
# Twisted
|
||||||
try:
|
try:
|
||||||
import twisted
|
import twisted
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue