old_contents: # This file defines how PyOxidizer application building and packaging is
  # performed. See PyOxidizer's documentation at
  # https://pyoxidizer.readthedocs.io/en/stable/ for details of this
  # configuration file format.
  
  def make_exe():
      dist = default_python_distribution(flavor = VARS["flavor"])
  
      policy = dist.make_python_packaging_policy()
      # policy.extension_module_filter = "minimal"
      policy.extension_module_filter = "no-copyleft"
  
      policy.resources_location = "in-memory"
      policy.resources_location_fallback = "filesystem-relative:prefix"
  
      python_config = dist.make_python_interpreter_config()
      python_config.allocator_backend = "jemalloc"
  
      # Evaluate a string as Python code when the interpreter starts.
      python_config.run_command = "from doc2dash.__main__ import main; main()"
  
  
      # Produce a PythonExecutable from a Python distribution, embedded
      # resources, and other options. The returned object represents the
      # standalone executable that will be built.
      exe = dist.to_python_executable(
          name = "doc2dash",
          packaging_policy = policy,
          config = python_config,
      )
  
      # Install pinned dependencies, then ourselves.
      exe.add_python_resources(exe.pip_install(["-r", "requirements/pyoxidizer.txt"]))
      exe.add_python_resources(exe.pip_install(["."]))
  
      return exe
  
  def make_embedded_resources(exe):
      return exe.to_embedded_resources()
  
  def make_install(exe):
      # Create an object that represents our installed application file layout.
      files = FileManifest()
  
      # Add the generated executable to our install layout in the root directory.
      files.add_python_resource(".", exe)
  
      return files
  
  
  # Tell PyOxidizer about the build targets defined above.
  register_target("exe", make_exe)
  register_target("resources", make_embedded_resources, depends = ["exe"], default_build_script = True)
  register_target("install", make_install, depends = ["exe"], default = True)
  
  # Resolve whatever targets the invoker of this configuration file is requesting
  # be resolved.
  resolve_targets()
  
new_contents: # This file defines how PyOxidizer application building and packaging is
  # performed. See PyOxidizer's documentation at
  # https://pyoxidizer.readthedocs.io/en/stable/ for details of this
  # configuration file format.
  
  def make_exe():
      dist = default_python_distribution(flavor = VARS["flavor"])
  
      policy = dist.make_python_packaging_policy()
      # policy.extension_module_filter = "minimal"
      policy.extension_module_filter = "no-copyleft"
  
      policy.resources_location = "in-memory"
      policy.resources_location_fallback = "filesystem-relative:prefix"
  
      python_config = dist.make_python_interpreter_config()
      python_config.allocator_backend = "jemalloc"
  
      # Evaluate a string as Python code when the interpreter starts.
      python_config.run_command = "from doc2dash.__main__ import main; main()"
  
      # Produce a PythonExecutable from a Python distribution, embedded
      # resources, and other options. The returned object represents the
      # standalone executable that will be built.
      exe = dist.to_python_executable(
          name = "doc2dash",
          packaging_policy = policy,
          config = python_config,
      )
  
      # Install pinned dependencies, then ourselves.
      exe.add_python_resources(exe.pip_install(["-r", "requirements/pyoxidizer.txt"]))
      exe.add_python_resources(exe.pip_install(["."]))
  
      return exe
  
  def make_embedded_resources(exe):
      return exe.to_embedded_resources()
  
  def make_install(exe):
      # Create an object that represents our installed application file layout.
      files = FileManifest()
  
      # Add the generated executable to our install layout in the root directory.
      files.add_python_resource(".", exe)
  
      return files
  
  
  # Tell PyOxidizer about the build targets defined above.
  register_target("exe", make_exe)
  register_target("resources", make_embedded_resources, depends = ["exe"], default_build_script = True)
  register_target("install", make_install, depends = ["exe"], default = True)
  
  # Resolve whatever targets the invoker of this configuration file is requesting
  # be resolved.
  resolve_targets()
  
subject: Remove stray empty line