forked from 0x2620/pandora
fail with old python
This commit is contained in:
parent
408788cac1
commit
361f276315
1 changed files with 6 additions and 0 deletions
|
@ -282,6 +282,12 @@ if __name__ == "__main__":
|
||||||
with open('pandora/local_settings.py', 'w') as f:
|
with open('pandora/local_settings.py', 'w') as f:
|
||||||
f.write('\n'.join(local_settings))
|
f.write('\n'.join(local_settings))
|
||||||
if old <= 6313:
|
if old <= 6313:
|
||||||
|
if sys.version_info[0:2] < (3, 6):
|
||||||
|
print('Python 3.6 or late is required now, upgrade your system and run:')
|
||||||
|
print('')
|
||||||
|
print('./update.py postupdate %s %s' % (6313, new))
|
||||||
|
print('')
|
||||||
|
sys.exit(1)
|
||||||
run('./bin/pip', 'uninstall', 'django-celery', '-y')
|
run('./bin/pip', 'uninstall', 'django-celery', '-y')
|
||||||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||||
if old <= 6315:
|
if old <= 6315:
|
||||||
|
|
Loading…
Reference in a new issue