diff options
| author | Victor Stinner <vstinner@python.org> | 2023-10-06 00:37:28 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 00:37:28 (GMT) |
| commit | e0c44377935de3491b2cbe1e5f87f8b336fdc922 (patch) | |
| tree | 63a5ef10c9528b0591833f443e7fe51f7c2675dd /Lib/test/test_cppext/setup.py | |
| parent | 3c0f65ebce10d5327e07245f7cf2beb96b18c970 (diff) | |
| download | cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.zip cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.gz cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.bz2 | |
Add support.MS_WINDOWS constant (#110446)
Diffstat (limited to 'Lib/test/test_cppext/setup.py')
| -rw-r--r-- | Lib/test/test_cppext/setup.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_cppext/setup.py b/Lib/test/test_cppext/setup.py index 976633b..c7ba1ef 100644 --- a/Lib/test/test_cppext/setup.py +++ b/Lib/test/test_cppext/setup.py @@ -4,15 +4,13 @@ import os import shlex import sys import sysconfig +from test import support from setuptools import setup, Extension -MS_WINDOWS = (sys.platform == 'win32') - - SOURCE = 'extension.cpp' -if not MS_WINDOWS: +if not support.MS_WINDOWS: # C++ compiler flags for GCC and clang CPPFLAGS = [ # gh-91321: The purpose of _testcppext extension is to check that building |
