mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
setup.py: Check python version at start
This commit is contained in:
1 parent
e999dd6800
commit
9177f9e229
1 file changed
+3
@@ -22,6 +22,9 @@ import semantic_version
|
||||
|
||||
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':
|
||||
assert platform.architecture()[0] == '32bit', 'Assumes a Python built for 32bit'
|
||||
import py2exe # noqa: F401 # Yes, this *is* used
|
||||
|
||||
Reference in new issue
Block a user