MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_winsdk_lib

Function get_winsdk_lib

tools/cython_setup.py:144–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def get_winsdk_lib():
145 print("[cython_setup.py] Detect Windows SDK library directory")
146 ret = ""
147 if WINDOWS:
148 if ARCH32:
149 winsdk_libs = [
150 # Windows 7 SDKs.
151 r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib",
152 r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Lib",
153 ]
154 elif ARCH64:
155 winsdk_libs = [
156 # Windows 7 SDKs.
157 r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib\\x64",
158 r"C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0\\Lib\\x64",
159 ]
160 else:
161 raise Exception("Unknown architecture")
162 for lib in winsdk_libs:
163 if os.path.exists(lib):
164 ret = lib
165 break
166 if not ret:
167 ret = winsdk_libs[0]
168 if not os.path.exists(ret):
169 raise Exception("Windows SDK Lib directory not found: %s"
170 % ret)
171 return ret
172
173
174def set_compiler_options(options):

Callers 1

get_library_dirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected