Skip to content

Commit

Permalink
Ddepend: Suppress warnings about missing UCRT dependencies on Win 10.
Browse files Browse the repository at this point in the history
These files do not exist on Windows 10 on purpose (see issue #1566).
  • Loading branch information
Giuseppe Corbelli authored and htgoebel committed Feb 26, 2019
1 parent 682a420 commit 4af90f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions PyInstaller/depend/bindepend.py
Expand Up @@ -21,8 +21,9 @@
import collections

from .. import compat
from ..compat import (is_win, is_unix, is_aix, is_solar, is_cygwin, is_hpux,
is_darwin, is_freebsd, is_venv, base_prefix, PYDYLIB_NAMES)
from ..compat import (is_win, is_win_10, is_unix, is_aix, is_solar, is_cygwin,
is_hpux, is_darwin, is_freebsd, is_venv, base_prefix,
PYDYLIB_NAMES)
from . import dylib, utils

from .. import log as logging
Expand Down Expand Up @@ -535,7 +536,10 @@ def selectImports(pth, xtrapath=None):
lib, os.path.basename(pth), npth)
rv.append((lib, npth))
else:
logger.warning("lib not found: %s dependency of %s", lib, pth)
# Don't spew out false warnings on win 10 and UCRT (see issue
# #1566).
if not (is_win_10 and lib.startswith("api-ms-win-crt")):
logger.warning("lib not found: %s dependency of %s", lib, pth)

return rv

Expand Down
1 change: 1 addition & 0 deletions news/1566.core.rst
@@ -0,0 +1 @@
Suppress warnings about missing UCRT dependencies on Win 10.
1 change: 1 addition & 0 deletions news/3736.core.rst
@@ -0,0 +1 @@
Suppress warnings about missing UCRT dependencies on Win 10.

0 comments on commit 4af90f4

Please sign in to comment.