aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <timothy.t.orling@intel.com>2021-11-25 14:26:20 -0800
committerTim Orling <timothy.t.orling@intel.com>2021-11-25 20:16:13 -0800
commitf2f14ed5d003a2310645a191c63f539d2faec42d (patch)
tree656a0ba6cd487c59afb292a2854095c1bcd06665
parent29ca205dca70847b0ef6d4db6f70eddce2544f9a (diff)
downloadopenembedded-core-contrib-f2f14ed5d003a2310645a191c63f539d2faec42d.tar.gz
openembedded-core-contrib-f2f14ed5d003a2310645a191c63f539d2faec42d.tar.bz2
openembedded-core-contrib-f2f14ed5d003a2310645a191c63f539d2faec42d.zip
waf.bbclass: drop usage of distutils
Refactor to use newly imported bb.version.LooseVersion [YOCTO #14610] Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
-rw-r--r--meta/classes/waf.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index df0ab8d73f..f9e240c272 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -43,7 +43,7 @@ BB_HASHBASE_WHITELIST += "WAFLOCK"
python waf_preconfigure() {
import subprocess
- from distutils.version import StrictVersion
+ from bb.version import StrictVersion
subsrcdir = d.getVar('S')
python = d.getVar('WAF_PYTHON')
wafbin = os.path.join(subsrcdir, 'waf')