old_contents: # Shim to wrap setup.py invocation with setuptools
  SETUPTOOLS_SHIM = (
      "import setuptools, tokenize;__file__=%r;"
      "exec(compile(getattr(tokenize, 'open', open)(__file__).read()"
      ".replace('\\r\\n', '\\n'), __file__, 'exec'))"
  )
  
new_contents: # Shim to wrap setup.py invocation with setuptools
  SETUPTOOLS_SHIM = (
      "import setuptools, tokenize;__file__=%r;"
      "f=getattr(tokenize, 'open', open)(__file__);"
      "code=f.read().replace('\\r\\n', '\\n');"
      "f.close();"
      "exec(compile(code, __file__, 'exec'))"
  )
  
subject: Fix a ResourceWarning in setuptools_build