Fix auto importer for LNL release (#12175)

This commit is contained in:
Yuwen Hu 2024-10-10 15:17:43 +08:00 committed by GitHub
parent 535bee5381
commit 890662610b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,12 @@ class IPEXImporter:
distribution('bigdl-core-xe-21')
return True
except PackageNotFoundError:
# bigdl-core-xe not found
# bigdl-core-xe & bigdl-core-xe-21 not found
# Check if bigdl-core-xe-23 is installed
try:
distribution('bigdl-core-xe-23')
return True
except PackageNotFoundError:
return False
return False