[Python-checkins] cpython (3.5): Issue #27713: Surpress spurious build warnings when updating importlib's

ned.deily python-checkins at python.org
Fri Aug 19 22:13:30 EDT 2016


https://hg.python.org/cpython/rev/97b996d81c62
changeset:   102791:97b996d81c62
branch:      3.5
parent:      102769:df4efc23ab18
user:        Ned Deily <nad at python.org>
date:        Fri Aug 19 22:12:06 2016 -0400
summary:
  Issue #27713: Surpress spurious build warnings when updating importlib's
bootstrap files:
    Could not find platform dependent libraries <exec_prefix
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Patch by Xiang Zhang

files:
  Misc/NEWS                    |  3 +++
  Programs/_freeze_importlib.c |  1 +
  2 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -177,6 +177,9 @@
 Build
 -----
 
+- Issue #27713: Surpress spurious build warnings when updating importlib's
+  bootstrap files.  Patch by Xiang Zhang
+
 - Issue #25825: Correct the references to Modules/python.exp, which is
   required on AIX.  The references were accidentally changed in 3.5.0a1.
 
diff --git a/Programs/_freeze_importlib.c b/Programs/_freeze_importlib.c
--- a/Programs/_freeze_importlib.c
+++ b/Programs/_freeze_importlib.c
@@ -77,6 +77,7 @@
     Py_NoUserSiteDirectory++;
     Py_NoSiteFlag++;
     Py_IgnoreEnvironmentFlag++;
+    Py_FrozenFlag++;
 
     Py_SetProgramName(L"./_freeze_importlib");
     /* Don't install importlib, since it could execute outdated bytecode. */

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list