Skip to content

Commit b39a58b

Browse files
committed
TST: add support for cygwin
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 9cc6895 commit b39a58b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_wheel.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
INTERPRETER_VERSION = f'{sys.version_info[0]}{sys.version_info[1]}'
2929

3030

31-
if platform.python_implementation() == 'CPython':
31+
python_implementation = platform.python_implementation()
32+
if python_implementation == 'CPython' or python_implementation.startswith('CYGWIN'):
3233
INTERPRETER_TAG = f'cp{INTERPRETER_VERSION}'
3334
PYTHON_TAG = INTERPRETER_TAG
3435
# Py_UNICODE_SIZE has been a runtime option since Python 3.3,
@@ -40,19 +41,19 @@
4041
pymalloc = sysconfig.get_config_var('WITH_PYMALLOC')
4142
if pymalloc or pymalloc is None: # none is the default value, which is enable
4243
INTERPRETER_TAG += 'm'
43-
elif platform.python_implementation() == 'PyPy':
44+
elif python_implementation == 'PyPy':
4445
INTERPRETER_TAG = sysconfig.get_config_var('SOABI').replace('-', '_')
4546
PYTHON_TAG = f'pp{INTERPRETER_VERSION}'
4647
else:
47-
raise NotImplementedError(f'Unknown implementation: {platform.python_implementation()}')
48+
raise NotImplementedError(f'Unknown implementation: {python_implementation}')
4849

4950
PLATFORM_TAG = sysconfig.get_platform().replace('-', '_').replace('.', '_')
5051

5152
if platform.system() == 'Linux':
5253
SHARED_LIB_EXT = 'so'
5354
elif platform.system() == 'Darwin':
5455
SHARED_LIB_EXT = 'dylib'
55-
elif platform.system() == 'Windows':
56+
elif platform.system() == 'Windows' or platform.system().startswith('CYGWIN'):
5657
SHARED_LIB_EXT = 'pyd'
5758
else:
5859
raise NotImplementedError(f'Unknown system: {platform.system()}')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy