disable pyoxidizer importer
@@ -17,16 +17,15 @@ def make_exe():
dist = default_python_distribution(python_version = "3.9")
policy = dist.make_python_packaging_policy()
- # policy.include_distribution_sources = True
- # policy.include_distribution_resources = True
- # policy.include_file_resources = True
- # policy.include_test = True
policy.resources_location = "filesystem-relative:lib"
python_config = dist.make_python_interpreter_config()
python_config.module_search_paths = ["$ORIGIN/lib"]
python_config.run_module = "pymedphys"
+ python_config.filesystem_importer = True
+ python_config.oxidized_importer = False
+
exe = dist.to_python_executable(
name = "pymedphys",
packaging_policy = policy,
@@ -35,7 +34,6 @@ def make_exe():
exe.windows_runtime_dlls_mode = "always"
exe.windows_subsystem = "console"
- # exe.add_python_resources(exe.pip_install(["--use-feature", "in-tree-build", "-r", "requirements-deploy.txt"]))
exe.add_python_resources(exe.pip_install(["--use-feature", "in-tree-build", "-r", "requirements-cli.txt"]))
exe.add_python_resources(exe.pip_install(["--use-feature", "in-tree-build", "-r", "requirements-icom.txt"]))
exe.add_python_resources(exe.pip_install(["--use-feature", "in-tree-build", "-r", "requirements-tests.txt"]))
