I observed when running a pip wheel build on a project using a setup.py
file using license_files with absolute paths referring to a superdirectory.
The resulting license files are correctly copied into the wheel but the
License-File headers still have the absolute path.
This results in a SameFileError from the shutil.copyfile function
Not sure what should be done. The License-File attribute is a future
feature in the standards track but some builders handle it correctly.
We should at least make sure it doesn't crash like this.
I observed when running a
pip wheel
build on a project using asetup.py
file usinglicense_files
with absolute paths referring to a superdirectory. The resulting license files are correctly copied into the wheel but theLicense-File
headers still have the absolute path.This results in a
SameFileError
from theshutil.copyfile
functionNot sure what should be done. The License-File attribute is a future feature in the standards track but some builders handle it correctly. We should at least make sure it doesn't crash like this.