Open albertosottile opened 2 months ago
Another workaround might be to add setuptools
to OPTIONS['excludes']
but this might be impossible in some app bundles.
I too had the same issue using SetupTools 72.2.0. I reverted back to 70.3.0 and this issue went away. I was building using Python 3.12.5.
I was having the same issue and reverted to 70.3.0, like @jwojcik999, and met with immediate success.
same for me on macOS Sonoma with Python 3.12.5, reverted to 70.3.0 and problem solved
Me too. I had to convince pip-compile to pin setuptools which was annoying, but it did indeed fix the issue.
The app bundling process (
python ... py2app
) crashes with the messageerror: [Errno 17] File exists: [file path]
whensetuptools>=71.0.2
is installed.So far, I have seen the error occurring on
/build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/typing_extensions-4.12.2.dist-info
/build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/tomli-2.0.1.dist-info
/build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/packaging-24.1.dist-info
but I guess this heavily depends on my app.
Reverting
setuptools
to version 71.0.0 or lower allows to build the app again.Failed Actions run: https://github.com/Syncplay/syncplay/actions/runs/10330005141/job/28600913447 Successful Actions run (70.3.0): https://github.com/Syncplay/syncplay/actions/runs/10332215649/job/28603217869