Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5bc344

Browse files
committed
correct 32bit build bug
1 parent 166de9d commit d5bc344

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

winpython/disthelpers.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def get_msvc_dlls(msvc_version, architecture=None):
256256
'vcomp%s.dll',
257257
)
258258
]
259-
if msvc_major == '15':
259+
if msvc_major == '15' and architecture == 64:
260260
namelist = [
261261
name % ('14' + msvc_minor)
262262
for name in (
@@ -268,6 +268,17 @@ def get_msvc_dlls(msvc_version, architecture=None):
268268
'vcomp%s.dll',
269269
)
270270
]
271+
if msvc_major == '15' and architecture != 64:
272+
namelist = [
273+
name % ('14' + msvc_minor)
274+
for name in (
275+
'vcruntime%s.dll',
276+
'msvcp%s.dll',
277+
'vccorlib%s.dll',
278+
'concrt%s.dll',
279+
'vcomp%s.dll',
280+
)
281+
]
271282
windir = os.environ['windir']
272283
is_64bit_windows = osp.isdir(
273284
osp.join(windir, "SysWOW64")

0 commit comments

Comments
 (0)