summaryrefslogtreecommitdiff
path: root/scripts/sphinx-pre-install
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2021-02-02 03:17:14 +0300
committerJonathan Corbet <corbet@lwn.net>2021-02-02 03:17:14 +0300
commit4217e5074f33d855873370378d427e329b60a7b4 (patch)
tree3186d771136f53250502d43a2301aeef1a90f76b /scripts/sphinx-pre-install
parentf546ff0c0c07969f2892db10f1fe029f841ddf10 (diff)
downloadlinux-4217e5074f33d855873370378d427e329b60a7b4.tar.xz
Docs: drop Python 2 support
The kernel build system as a whole is dropping support for Python 2, so we should do the same. The effects are rather small, especially considering that much of the deleted code was not doing anything under any version of Python anyway. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/sphinx-pre-install')
-rwxr-xr-xscripts/sphinx-pre-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
index 828a8615a918..b5f9fd5b2880 100755
--- a/scripts/sphinx-pre-install
+++ b/scripts/sphinx-pre-install
@@ -728,8 +728,8 @@ sub check_needs()
$need_virtualenv = 1;
}
if ($1 < 3) {
- # Complain if it finds python2 (or worse)
- printf "Warning: python$1 support is deprecated. Use it with caution!\n";
+ # Fail if it finds python2 (or worse)
+ die "Python 3 is required to build the kernel docs\n";
}
} else {
die "Warning: couldn't identify $python_cmd version!";