diff options
author | Kefu Chai <tchaikov@gmail.com> | 2022-03-25 16:06:46 +0100 |
---|---|---|
committer | Kefu Chai <tchaikov@gmail.com> | 2022-03-25 16:49:12 +0100 |
commit | 637dd7b40404e644519b1fc3b5ef03f2d18def00 (patch) | |
tree | a66c3281326bbaa84a1cc5b6c862f71f6f6a077f /cmake/modules/Distutils.cmake | |
parent | cmake/modules: drop a cmake variable (diff) | |
download | ceph-637dd7b40404e644519b1fc3b5ef03f2d18def00.tar.xz ceph-637dd7b40404e644519b1fc3b5ef03f2d18def00.zip |
cmake/modules: avoid using distutils
to address following warning from python 3.9:
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Diffstat (limited to 'cmake/modules/Distutils.cmake')
-rw-r--r-- | cmake/modules/Distutils.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake index 862f80820e2..1d954c3a51f 100644 --- a/cmake/modules/Distutils.cmake +++ b/cmake/modules/Distutils.cmake @@ -64,7 +64,7 @@ function(distutils_add_cython_module target name src) set(PY_LDSHARED ${link_launcher} ${CMAKE_C_COMPILER} ${c_compiler_arg1} "-shared") execute_process(COMMAND "${Python3_EXECUTABLE}" -c - "from distutils import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))" + "import sysconfig; print(sysconfig.get_config_var('EXT_SUFFIX'))" RESULT_VARIABLE result OUTPUT_VARIABLE ext_suffix ERROR_VARIABLE error |