Created attachment 140297 [details] [review]
Patch against syncevolution-1.5.3 replacing python by python2
Syncevolution relies on python == python2. This causes problems at least on Arch Linux. With Python 2 EOL drawing closer, this will become even more of an issue.
PEP 394 states (https://www.python.org/dev/peps/pep-0394/):
- In order to tolerate differences across platforms, all new code that needs to invoke the Python interpreter should not specify python, but rather should specify either python2 or python3... This distinction should be made in shebangs...
- One exception to this is scripts that are deliberately written to be source compatible with both Python 2.x and 3.x. Such scripts may continue to use python on their shebang line.
SyncEvolution is not "new code", so it does not technically violate this PEP. Nevertheless, it is clearly best practice to explicitly specify the Python version and use "python" only for scripts compatible with both python 2 and python3.
FWIW, I attach the patch I ship with the syncevolution Arch package I maintain.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/SyncEvolution/syncevolution/issues/161.