[dpdk-dev] [PATCH 4/9] devtools/update_version_map: add python2 deprecation notice

Louise Kilheeney louise.kilheeney at intel.com
Fri Jul 10 12:10:50 CEST 2020


Cc: Neil Horman <nhorman at tuxdriver.com>
Cc: Ray Kinsella <mdr at ashroe.eu>

Signed-off-by: Louise Kilheeney <louise.kilheeney at intel.com>
---
 devtools/update_version_map_abi.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devtools/update_version_map_abi.py b/devtools/update_version_map_abi.py
index e2104e61e..80a61641e 100755
--- a/devtools/update_version_map_abi.py
+++ b/devtools/update_version_map_abi.py
@@ -160,6 +160,10 @@ def __generate_internal_abi(f_out, lines):
     print("};", file=f_out)
 
 def __main():
+    if sys.version_info.major < 3:
+        print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr)
+        print("Please use Python 3 instead", file=sys.stderr)
+
     arg_parser = argparse.ArgumentParser(
         description='Merge versions in linker version script.')
 
-- 
2.17.1



More information about the dev mailing list