diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-06 01:26:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 01:26:14 (GMT) |
commit | e188534607761af1f8faba483ce0b1e8578c73e5 (patch) | |
tree | 7febcd397c9c48716fe1f459b9cc400f5cc67ca0 /Lib/test/test_cppext/setup.py | |
parent | 67028f0c159d9d83528d1890d8e9543157efb8b7 (diff) | |
download | cpython-e188534607761af1f8faba483ce0b1e8578c73e5.zip cpython-e188534607761af1f8faba483ce0b1e8578c73e5.tar.gz cpython-e188534607761af1f8faba483ce0b1e8578c73e5.tar.bz2 |
[3.12] Add support.MS_WINDOWS constant (#110446) (#110452)
Add support.MS_WINDOWS constant (#110446)
(cherry picked from commit e0c44377935de3491b2cbe1e5f87f8b336fdc922)
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 |