pyoxidizer: allow extensions to be loaded from the file system
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 13 Feb 2020 15:33:36 -0800
changeset 44415 6689cebacb32
parent 44414 218feb1a7e00
child 44416 a98ba6983a63
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
contrib/packaging/pyoxidizer.bzl
--- 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,