mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-10 04:12:15 +03:00
setup.py: Check python version at start
This commit is contained in:
parent
e999dd6800
commit
9177f9e229
3
setup.py
3
setup.py
@ -22,6 +22,9 @@ import semantic_version
|
|||||||
|
|
||||||
from config import appcmdname, applongname, appname, appversion, copyright, update_feed, update_interval
|
from config import appcmdname, applongname, appname, appversion, copyright, update_feed, update_interval
|
||||||
|
|
||||||
|
if sys.version_info[0:2] != (3, 8):
|
||||||
|
raise AssertionError(f'Unexpected python version {sys.version}')
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
assert platform.architecture()[0] == '32bit', 'Assumes a Python built for 32bit'
|
assert platform.architecture()[0] == '32bit', 'Assumes a Python built for 32bit'
|
||||||
import py2exe # noqa: F401 # Yes, this *is* used
|
import py2exe # noqa: F401 # Yes, this *is* used
|
||||||
|
Loading…
x
Reference in New Issue
Block a user