File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 20
20
from src import __main__
21
21
22
22
if __name__ == '__main__' :
23
- curr_version = sys .version_info
24
- min_py = __version__ .python_requires . split ( '.' )
23
+ python_version = sys .version_info [: 2 ]
24
+ python_requires = __version__ .python_requires
25
25
# Ensure Python installation meets requirements
26
- if curr_version >= (int (min_py [0 ]), int (min_py [1 ])):
27
- __main__ .init ()
28
- else :
26
+ if python_version < python_requires :
29
27
from src import __globals__
30
28
from src .init_logging import InitLogging
31
29
InitLogging (2 )
32
30
__globals__ .logger .error (
33
- f'Your system running Python { curr_version [0 ]} .{ curr_version [1 ]} '
34
- f' which is lower than the required Python { min_py [0 ]} .{ min_py [1 ]} .'
31
+ f'Your system running Python { python_version [0 ]} .{ python_version [1 ]} '
32
+ f' which is lower than the required Python { python_requires [0 ]} .{ python_requires [1 ]} .'
35
33
f' Please consider updating your installation.' )
34
+ else :
35
+ __main__ .init ()
Original file line number Diff line number Diff line change 16
16
17
17
__version__ = '0.0.1'
18
18
19
- python_requires = '3.8'
19
+ python_requires = ( 3 , 8 )
You can’t perform that action at this time.
0 commit comments