docstr: Preprocesses the command line options before they are passed to
  setup.py and sets up the build configuration.
docstr_tok: ["Preprocesses","the","command","line","options","before","they","are","passed","to","setup.py","and","sets","up","the","build","configuration","."]
code: def process_args_from_command_line(self):
      """Preprocesses the command line options before they are passed to
      setup.py and sets up the build configuration.
      """
      # Yes, this is ugly, but we don't want to interfere with setup.py's own
      # option handling
      opts_to_remove = []
      for idx, option in enumerate(sys.argv):
          if not option.startswith("--"):
              continue
          if option == "--static":
              opts_to_remove.append(idx)
              self.static_extension = True
          elif option == "--no-pkg-config":
              opts_to_remove.append(idx)
              self.use_pkgconfig = False
          elif option == "--no-wait":
              opts_to_remove.append(idx)
              self.wait = False
          elif option == "--use-pkg-config":
              opts_to_remove.append(idx)
              self.use_pkgconfig = True
  
      for idx in reversed(opts_to_remove):
          sys.argv[idx : (idx + 1)] = []
  
imports: import os
  import platform
  import sys
  from setuptools import find_packages, setup, Command, Extension
  import glob
  import shlex
  import shutil
  import subprocess
  import sysconfig
  from contextlib import contextmanager
  from pathlib import Path
  from select import select
  from shutil import which
  from time import sleep
  from typing import List, Iterable, Iterator, Optional, Tuple, TypeVar, Union
label_desc: Use image node_id 10 for calling the BuildConfiguration obj's underlying member method code with example usage: obj.process_args_from_command_line() without return types