Skip to content

Commit 99110ce

Browse files
committed
Don't even need _vcvars_names
1 parent eca016f commit 99110ce

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

setup.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@
7878
# dll_base_address later in this file...
7979
dll_base_address = 0x1E200000
8080

81-
# Same as setuptools._distutils.compilers.C.msvc._vcvars_names
82-
_vcvars_names = {
83-
"win32": "x86",
84-
"win-amd64": "amd64",
85-
"win-arm32": "arm",
86-
"win-arm64": "arm64",
87-
}
88-
8981

9082
class WinExt(Extension):
9183
# Base class for all win32 extensions, with some predefined
@@ -371,7 +363,7 @@ class my_build_ext(build_ext):
371363
def finalize_options(self):
372364
build_ext.finalize_options(self)
373365

374-
self.plat_dir = _vcvars_names.get(self.plat_name, "x86")
366+
self.plat_dir = "x86" if self.plat_name == "win32" else self.plat_name[4:]
375367

376368
# The pywintypes library is created in the build_temp
377369
# directory, so we need to add this to library_dirs

0 commit comments

Comments
 (0)