changeset 44384:6689cebacb32

pyoxidizer: allow extensions to be loaded from the file system It seems that setting this config is all that's needed to be able to load extensions from the file system (which we clearly want). Thanks for making this work, Gregory Szorc!. Differential Revision: https://phab.mercurial-scm.org/D8122
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 13 Feb 2020 15:33:36 -0800
parents 218feb1a7e00
children a98ba6983a63
files contrib/packaging/pyoxidizer.bzl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/packaging/pyoxidizer.bzl	Mon Feb 17 20:30:03 2020 -0500
+++ b/contrib/packaging/pyoxidizer.bzl	Thu Feb 13 15:33:36 2020 -0800
@@ -21,6 +21,8 @@
     config = PythonInterpreterConfig(
         raw_allocator = "system",
         run_eval = code,
+        # We want to let the user load extensions from the file system
+        filesystem_importer = True,
         # We need this to make resourceutil happy, since it looks for sys.frozen.
         sys_frozen = True,
         legacy_windows_stdio = True,