zuzukin / whl2conda

Generate conda package from pure python wheel
https://zuzukin.github.io/whl2conda/
Apache License 2.0
6 stars 2 forks source link

License-File attribute in wheel could be an absolute path #86

Closed analog-cbarber closed 1 year ago

analog-cbarber commented 1 year ago

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.