From 3501d373f0a24d29814d8111a13de62d88ab86bd Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 11 Aug 2024 09:02:43 -0600 Subject: [PATCH] Require Python 3 We don't need to support Python 2 anymore, so drop the comment and add the minimum required version. Use version 3.8 since I am not sure that it works on older versions and 3.7 has reached end-of-life. Signed-off-by: Simon Glass Message-ID: <20240811150248.7537-1-sjg@chromium.org> Signed-off-by: David Gibson --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 293bb6b..749bf1b 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,6 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) -# While Python 3 is the default, it's also possible to invoke -# this setup.py script with Python 2. - """ setup.py file for SWIG libfdt Copyright (C) 2017 Google, Inc. @@ -60,6 +57,7 @@ setup( ext_modules=[libfdt_module], package_dir={'': os.path.join(srcdir, 'pylibfdt')}, py_modules=['libfdt'], + python_requires=">=3.8", long_description=long_description, long_description_content_type="text/plain",