[3.12] Add support.MS_WINDOWS constant (#110446) (#110452)

Add support.MS_WINDOWS constant (#110446)

(cherry picked from commit e0c4437793)
This commit is contained in:
Victor Stinner 2023-10-06 03:26:14 +02:00 committed by GitHub
parent 67028f0c15
commit e188534607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 27 additions and 23 deletions

View file

@ -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