class_docstr: This class exists to allow virtual environment creation to be
  customized. The constructor parameters determine the builder's
  behaviour when called upon to create a virtual environment.
  
  By default, the builder makes the system (global) site-packages dir
  *un*available to the created environment.
  
  If invoked using the Python -m option, the default is to use copying
  on Windows platforms but symlinks elsewhere. If instantiated some
  other way, the default is to *not* use symlinks.
  
  :param system_site_packages: If True, the system (global) site-packages
                               dir is available to created environments.
  :param clear: If True, delete the contents of the environment directory if
                it already exists, before environment creation.
  :param symlinks: If True, attempt to symlink rather than copy files into
                   virtual environment.
  :param upgrade: If True, upgrade an existing virtual environment.
  :param with_pip: If True, ensure pip is installed in the virtual
                   environment
  :param prompt: Alternative terminal prefix for the environment.
  :param upgrade_deps: Update the base venv modules to the latest on PyPI
  :param scm_ignore_files: Create ignore files for the SCMs specified by the
                           iterable.
docstr: Create a configuration file indicating where the environment's Python
  was copied from, and whether the system site-packages should be made
  available in the environment.
  
  :param context: The information for the environment creation request
                  being processed.
docstr_tok: ["Create","a","configuration","file","indicating","where","the","environment","'s","Python","was","copied","from",",","and","whether","the","system","site-packages","should","be","made","available","in","the","environment",".",":","param","context",":","The","information","for","the","environment","creation","request","being","processed","."]
code: def create_configuration(self, context):
      """
      Create a configuration file indicating where the environment's Python
      was copied from, and whether the system site-packages should be made
      available in the environment.
  
      :param context: The information for the environment creation request
                      being processed.
      """
      context.cfg_path = path = os.path.join(
          context.env_dir, "pyvenv.cfg"
      )
      with open(path, "w", encoding="utf-8") as f:
          f.write("home = %s\n" % context.python_dir)
          if self.system_site_packages:
              incl = "true"
          else:
              incl = "false"
          f.write("include-system-site-packages = %s\n" % incl)
          f.write("version = %d.%d.%d\n" % sys.version_info[:3])
          if self.prompt is not None:
              f.write(f"prompt = {self.prompt!r}\n")
          f.write(
              "executable = %s\n" % os.path.realpath(sys.executable)
          )
          args = []
          nt = os.name == "nt"
          if nt and self.symlinks:
              args.append("--symlinks")
          if not nt and not self.symlinks:
              args.append("--copies")
          if not self.with_pip:
              args.append("--without-pip")
          if self.system_site_packages:
              args.append("--system-site-packages")
          if self.clear:
              args.append("--clear")
          if self.upgrade:
              args.append("--upgrade")
          if self.upgrade_deps:
              args.append("--upgrade-deps")
          if self.orig_prompt is not None:
              args.append(f'--prompt="{self.orig_prompt}"')
          if not self.scm_ignore_files:
              args.append("--without-scm-ignore-files")
  
          args.append(context.env_dir)
          args = " ".join(args)
          f.write(f"command = {sys.executable} -m venv {args}\n")
  
imports: import logging
  import os
  import shutil
  import subprocess
  import sys
  import sysconfig
  import types
label_desc: Use image node_id 6 for calling the EnvBuilder obj's underlying member method code with example usage: obj.create_configuration(context) without return types