`swift` is specified both as script and entry point, resulting in broken wheels with pep517 installer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
The `swift` executable is specified both as a regular script and an entry point, i.e.:
[files]
scripts =
bin/swift
[entry_points]
console_scripts =
swift = swiftclient.
As a result, the resulting wheel tries to install the same script twice and this causes installer to fail:
$ python -m installer --destdir /tmp/z dist/python_
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/
_main(
^^^
File "/usr/lib/
installer.
^^^
File "/usr/lib/
record = destination.
File "/usr/lib/
return self.write_to_fs(
File "/usr/lib/
raise FileExistsError
^^^
FileExistsError: File already exists: /tmp/z/