1
# Bootstrap charm-helpers, installing its dependencies if necessary using
2
# only standard libraries.
7
import six # flake8: noqa
9
if sys.version_info.major == 2:
10
subprocess.check_call(['apt-get', 'install', '-y', 'python-six'])
12
subprocess.check_call(['apt-get', 'install', '-y', 'python3-six'])
13
import six # flake8: noqa
16
import yaml # flake8: noqa
18
if sys.version_info.major == 2:
19
subprocess.check_call(['apt-get', 'install', '-y', 'python-yaml'])
21
subprocess.check_call(['apt-get', 'install', '-y', 'python3-yaml'])
22
import yaml # flake8: noqa