From d8f42ed9e5f137e96278bac86279669a8ed189be Mon Sep 17 00:00:00 2001 From: Matthias Abt <64145808+MatthiasAbtIfm@users.noreply.github.com> Date: Tue, 3 Nov 2020 11:15:18 +0100 Subject: [PATCH 1/2] fix SO is deprecated, use EXT_SUFFIX --- tools/FindPythonLibsNew.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/FindPythonLibsNew.cmake b/tools/FindPythonLibsNew.cmake index 9ea6036e33..3795a2efb3 100644 --- a/tools/FindPythonLibsNew.cmake +++ b/tools/FindPythonLibsNew.cmake @@ -80,7 +80,7 @@ print('.'.join(str(v) for v in sys.version_info)); print(sys.prefix); print(s.get_python_inc(plat_specific=True)); print(s.get_python_lib(plat_specific=True)); -print(s.get_config_var('SO')); +print(s.get_config_var('SO') or s.get_config_var('EXT_SUFFIX')); print(hasattr(sys, 'gettotalrefcount')+0); print(struct.calcsize('@P')); print(s.get_config_var('LDVERSION') or s.get_config_var('VERSION')); From f8452d85e0a40ed7bb8e08b127655fe8e0019121 Mon Sep 17 00:00:00 2001 From: Matthias Abt <64145808+MatthiasAbtIfm@users.noreply.github.com> Date: Tue, 3 Nov 2020 11:17:55 +0100 Subject: [PATCH 2/2] fix SO is deprecated, use EXT_SUFFIX --- tools/FindPythonLibsNew.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/FindPythonLibsNew.cmake b/tools/FindPythonLibsNew.cmake index 9ea6036e33..3795a2efb3 100644 --- a/tools/FindPythonLibsNew.cmake +++ b/tools/FindPythonLibsNew.cmake @@ -80,7 +80,7 @@ print('.'.join(str(v) for v in sys.version_info)); print(sys.prefix); print(s.get_python_inc(plat_specific=True)); print(s.get_python_lib(plat_specific=True)); -print(s.get_config_var('SO')); +print(s.get_config_var('SO') or s.get_config_var('EXT_SUFFIX')); print(hasattr(sys, 'gettotalrefcount')+0); print(struct.calcsize('@P')); print(s.get_config_var('LDVERSION') or s.get_config_var('VERSION'));