File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
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
51
52
if platform .system () == 'Linux' :
52
53
SHARED_LIB_EXT = 'so'
53
54
elif platform .system () == 'Darwin' :
54
55
SHARED_LIB_EXT = 'dylib'
55
- elif platform .system () == 'Windows' :
56
+ elif platform .system () == 'Windows' or platform . system (). startswith ( 'CYGWIN' ) :
56
57
SHARED_LIB_EXT = 'pyd'
57
58
else :
58
59
raise NotImplementedError (f'Unknown system: { platform .system ()} ' )
You can’t perform that action at this time.
0 commit comments