mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
kconfig: a faster way to check the availability of python3 package
It is faster to check the existance of a certain library by trying importing that library, instead of invoking pip3 for a complete list of installed libraries. Time of the check can be significantly reduced. # time pip3 list ... real 0m6.038s user 0m0.652s sys 0m0.036s # time python3 -c "import kconfiglib" real 0m0.037s user 0m0.036s sys 0m0.000s Tracked-On: #1588 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Reviewed-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -34,7 +34,6 @@ $(eval $(call override_config,PLATFORM,sbl))
|
||||
$(eval $(call override_config,RELEASE,n))
|
||||
|
||||
$(eval $(call check_dep_exec,python3,KCONFIG_DEPS))
|
||||
$(eval $(call check_dep_exec,pip3,KCONFIG_DEPS))
|
||||
$(eval $(call check_dep_py3lib,kconfiglib,KCONFIG_DEPS))
|
||||
|
||||
# This target invoke silentoldconfig to generate or update a .config. Useful as
|
||||
|
Reference in New Issue
Block a user