require >= Python 3.7
This means that Ubuntu Bionic (Python 3.6.9) is no longer supported
This commit is contained in:
parent
8d1eff7eed
commit
016f83f0d7
3 changed files with 4 additions and 5 deletions
4
setup.py
4
setup.py
|
|
@ -21,11 +21,11 @@ from subprocess import run,PIPE
|
|||
from shutil import copy2
|
||||
|
||||
sys_ver = sys.version_info[:2]
|
||||
req_ver = (3,6)
|
||||
req_ver = (3,7)
|
||||
ver2f = lambda t: float('{}.{:03}'.format(*t))
|
||||
|
||||
if ver2f(sys_ver) < ver2f(req_ver):
|
||||
m = '{}.{}: incorrect Python version. MMGen requires Python {}.{} or greater\n'
|
||||
m = '{}.{}: unsupported Python version. MMGen requires Python {}.{} or greater\n'
|
||||
sys.stderr.write(m.format(*sys_ver,*req_ver))
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue