From 6d746fd2963a8461cb38efb4189388f96bf1f93e Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Thu, 6 Jan 2022 13:01:32 -0600 Subject: cmake: Replace distutils with CMake for version checks This commit replaces the use of distutils.version.LooseVersion() with CMake's version comparison operator, which implements relational version string checking in the same manner (i.e., comparing numeric components of a version string numerically). --- host/python/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/python') diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index 212bd9e46..a7f0352af 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -10,7 +10,8 @@ PYTHON_CHECK_MODULE( "virtualenv" - "sys" "hasattr(sys, 'real_prefix')" + "sys" + "hasattr(sys, 'real_prefix')" HAVE_PYTHON_VIRTUALENV ) -- cgit v1.2.3