On Mon, 13 Dec 2021, Martin Liška wrote: > I would like to ping this as Joel wrote that we'll be switching > to Python3. I know there are some scripts that are definitely in Python 2 > and I would like to port it.
Scripts in hooks-bin are executed in separate processes, not imported into the same Python interpreter as the main hooks, so I don't think there is any dependency involved on what Python version the main hooks use (make sure nothing is setting PATH or PYTHONPATH in a way that would affect those scripts and make them not find any system packages they depend on, directly or via the /home/gccadmin/.local/lib/python3.6/site-packages reference in commit_checker, however). The only one that's Python 2 appears to be email_to.py, which is trivial and should work with Python 3 with no changes other than to the #! line. > Having a git repo seems to me the only reasonable way doing that. There is a repository (/home/gccadmin/hooks-bin/.git), it's just not a bare one (so not suitable for pushing to) and not public (but anyone in the gcc group should be able to clone it, read-only, over ssh). > Can we please set it up? If someone with the relevant access wishes to set up a public, bare repository with appropriate post-receive hook to update the hooks-bin checkout that gets used, they are welcome to do so. -- Joseph S. Myers jos...@codesourcery.com