Commit 0884b99e authored by Frank Dana's avatar Frank Dana Committed by Frank Dana
Browse files

Use sysconfig for Python platform discovery

distutils is deprecated and slated for removal
in Python 3.12. sysconfig is the canonical
source for platform information.
parent 8e08148d
Pipeline #299405 passed with stages
in 293 minutes and 53 seconds
......@@ -20,7 +20,7 @@ set_property(GLOBAL PROPERTY _vtk_python_soabi "${Python3_SOABI}")
execute_process(
COMMAND "${Python3_EXECUTABLE}"
-c "from distutils import util; print(util.get_platform())"
-c "from sysconfig import get_platform; print(get_platform())"
OUTPUT_VARIABLE python_platform
ERROR_VARIABLE err
RESULT_VARIABLE res
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment