damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)
https://damnever.github.io/pigar/
BSD 3-Clause "New" or "Revised" License
1.61k stars 90 forks source link

Python Installer: FileExistsError #195

Closed yochananmarqos closed 5 months ago

yochananmarqos commented 5 months ago

Describe the bug

AUR package maintainer here.

When attempting to update to v2.1.2, Build successfully creates the wheel, however Installer fails.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/usr/lib/python3.11/site-packages/installer/__main__.py", line 94, in _main
    installer.install(source, destination, {})
  File "/usr/lib/python3.11/site-packages/installer/_core.py", line 87, in install
    record = destination.write_script(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/installer/destinations.py", line 230, in write_script
    entry = self.write_to_fs(
            ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/installer/destinations.py", line 167, in write_to_fs
    raise FileExistsError(message)
FileExistsError: File already exists: /build/pigar/pkg/pigar/usr/bin/pigar

To Reproduce Steps to reproduce the behavior:

Context (Environment)

damnever commented 5 months ago

The version v2.1.3 has been released.