From 36d6d9c8d71d77ae5f64f2f2f4587b8b5e0d9596 Mon Sep 17 00:00:00 2001 From: "Thomas J. Fan" Date: Thu, 20 Oct 2022 10:20:45 -0400 Subject: [PATCH] CI Remove remaining windows 32 references (#24657) Co-authored-by: Julien Jerphanion Co-authored-by: Olivier Grisel --- build_tools/github/vendor.py | 41 ------------------------------------ 1 file changed, 41 deletions(-) diff --git a/build_tools/github/vendor.py b/build_tools/github/vendor.py index 92e5fe6a8f205..32502189eae49 100644 --- a/build_tools/github/vendor.py +++ b/build_tools/github/vendor.py @@ -20,47 +20,6 @@ MSVCP140_SRC_PATH = "C:\\Windows\\System32\\msvcp140.dll" -def make_distributor_init_32_bits( - distributor_init, vcomp140_dll_filename, vcruntime140_dll_filename -): - """Create a _distributor_init.py file for 32-bit architectures. - - This file is imported first when importing the sklearn package - so as to pre-load the vendored vcomp140.dll and vcruntime140.dll. - """ - with open(distributor_init, "wt") as f: - f.write( - textwrap.dedent( - """ - '''Helper to preload vcomp140.dll and vcruntime140.dll to - prevent "not found" errors. - - Once vcomp140.dll and vcruntime140.dll are preloaded, the - namespace is made available to any subsequent vcomp140.dll - and vcruntime140.dll. This is created as part of the scripts - that build the wheel. - ''' - - - import os - import os.path as op - from ctypes import WinDLL - - - if os.name == "nt": - # Load vcomp140.dll and vcruntime140.dll - libs_path = op.join(op.dirname(__file__), ".libs") - vcomp140_dll_filename = op.join(libs_path, "{0}") - vcruntime140_dll_filename = op.join(libs_path, "{1}") - WinDLL(op.abspath(vcomp140_dll_filename)) - WinDLL(op.abspath(vcruntime140_dll_filename)) - """.format( - vcomp140_dll_filename, vcruntime140_dll_filename - ) - ) - ) - - def make_distributor_init_64_bits( distributor_init, vcomp140_dll_filename,