File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 28
28
INTERPRETER_VERSION = f'{ sys .version_info [0 ]} { sys .version_info [1 ]} '
29
29
30
30
31
- if platform .python_implementation () == 'CPython' :
31
+ python_implementation = platform .python_implementation ()
32
+ if python_implementation == 'CPython' or python_implementation .startswith ('CYGWIN' ):
32
33
INTERPRETER_TAG = f'cp{ INTERPRETER_VERSION } '
33
34
PYTHON_TAG = INTERPRETER_TAG
34
35
# Py_UNICODE_SIZE has been a runtime option since Python 3.3,
40
41
pymalloc = sysconfig .get_config_var ('WITH_PYMALLOC' )
41
42
if pymalloc or pymalloc is None : # none is the default value, which is enable
42
43
INTERPRETER_TAG += 'm'
43
- elif platform . python_implementation () == 'PyPy' :
44
+ elif python_implementation == 'PyPy' :
44
45
INTERPRETER_TAG = sysconfig .get_config_var ('SOABI' ).replace ('-' , '_' )
45
46
PYTHON_TAG = f'pp{ INTERPRETER_VERSION } '
46
47
else :
47
- raise NotImplementedError (f'Unknown implementation: { platform . python_implementation () } ' )
48
+ raise NotImplementedError (f'Unknown implementation: { python_implementation } ' )
48
49
49
50
PLATFORM_TAG = sysconfig .get_platform ().replace ('-' , '_' ).replace ('.' , '_' )
50
51
You can’t perform that action at this time.
0 commit comments