Closed musicinmybrain closed 1 year ago
The replacement is shutil.rmtree(onexc=…), which receives the exception instead of the sys.exc_info() tuple as the third argument.
shutil.rmtree(onexc=…)
sys.exc_info()
Unfortunately, explicitly testing the Python version number seems to be required. See also https://github.com/pypa/pip/pull/12137.
This accomplishes the same goal as https://github.com/ofek/hatch-vcs/pull/52, but approaches it very differently.
Thanks!
The replacement is
shutil.rmtree(onexc=…)
, which receives the exception instead of thesys.exc_info()
tuple as the third argument.Unfortunately, explicitly testing the Python version number seems to be required. See also https://github.com/pypa/pip/pull/12137.
This accomplishes the same goal as https://github.com/ofek/hatch-vcs/pull/52, but approaches it very differently.