class_docstr: Patch SKBuild logic to only take files related to the Python package
  and construct a file hierarchy that SKBuild expects (see below)
class_docstr_tok: ["Patch","SKBuild","logic","to","only","take","files","related","to","the","Python","package","and","construct","a","file","hierarchy","that","SKBuild","expects","(","see","below",")"]
code: def __init__(self, package_paths_re, files_outside_package, packages):
      cls = self.__class__
      assert not cls.wraps._classify_installed_files, "Singleton object"
      import skbuild.setuptools_wrap
  
      cls._setuptools_wrap = skbuild.setuptools_wrap
      cls.wraps._classify_installed_files = (
          cls._setuptools_wrap._classify_installed_files
      )
      cls._setuptools_wrap._classify_installed_files = (
          self._classify_installed_files_override
      )
  
      cls.package_paths_re = package_paths_re
      cls.files_outside_package = files_outside_package
      cls.packages = packages
  
file_path: opencv-python/setup.py
imports: import io
  import os
  import os.path
  import sys
  import runpy
  import subprocess
  import re
  import sysconfig
  import platform
  from skbuild import cmaker, setup
label_desc: Use image node_id 1 to create a new RearrangeCMakeOutput object  with example: obj = RearrangeCMakeOutput(package_paths_re, files_outside_package, packages)