diff options
Diffstat (limited to 'docs/python-support.md')
-rw-r--r-- | docs/python-support.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/python-support.md b/docs/python-support.md index af19cd05..35806de7 100644 --- a/docs/python-support.md +++ b/docs/python-support.md | |||
@@ -28,5 +28,20 @@ The master branch will require Python 3.6 at a minimum. | |||
28 | If the system has an older version of Python 3, then users will have to select | 28 | If the system has an older version of Python 3, then users will have to select |
29 | the legacy Python 2 branch instead. | 29 | the legacy Python 2 branch instead. |
30 | 30 | ||
31 | ### repo hooks | ||
31 | 32 | ||
33 | Projects that use [repo hooks] run on independent schedules. | ||
34 | They might migrate to Python 3 earlier or later than us. | ||
35 | To support them, we'll probe the shebang of the hook script and if we find an | ||
36 | interpreter in there that indicates a different version than repo is currently | ||
37 | running under, we'll attempt to reexec ourselves under that. | ||
38 | |||
39 | For example, a hook with a header like `#!/usr/bin/python2` will have repo | ||
40 | execute `/usr/bin/python2` to execute the hook code specifically if repo is | ||
41 | currently running Python 3. | ||
42 | |||
43 | For more details, consult the [repo hooks] documentation. | ||
44 | |||
45 | |||
46 | [repo hooks]: ./repo-hooks.md | ||
32 | [repo launcher]: ../repo | 47 | [repo launcher]: ../repo |