Airship script fix
This PS fixes tools/airship script that uses deprecated distutils python module. The deprecation message "distutils Version classes are deprecated" breaks tools/airship script logic. Change-Id: I7aa8b9ce0d7af26bf82e6e2a7f2fa19b5169aff5
This commit is contained in:
parent
6d9dbbd7b2
commit
e519bed497
@ -70,8 +70,8 @@ manifests_lookup(){
|
||||
RESULT=$(python3 -c "
|
||||
|
||||
import yaml,sys
|
||||
from distutils.version import StrictVersion
|
||||
if StrictVersion(yaml.__version__) < StrictVersion('5.1'):
|
||||
from packaging import version
|
||||
if version.Version(yaml.__version__) < version.Version('5.1'):
|
||||
y = yaml.load_all(open('$file'))
|
||||
else:
|
||||
y = yaml.load_all(open('$file'), Loader=yaml.FullLoader)
|
||||
|
@ -19,3 +19,12 @@
|
||||
- ensure-docker
|
||||
- ensure-python
|
||||
- ensure-pip
|
||||
|
||||
tasks:
|
||||
- name: Install Packaging python module for tools/airship
|
||||
block:
|
||||
- pip:
|
||||
name: packaging
|
||||
version: 23.1
|
||||
executable: pip3
|
||||
become: True
|
Loading…
x
Reference in New Issue
Block a user