2019-06-05 07:08:23 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
"""Show python and pip versions."""
|
2019-07-12 08:46:20 +02:00
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
__metaclass__ = type
|
2019-06-05 07:08:23 +02:00
|
|
|
|
|
|
|
import json
|
|
|
|
|
|
|
|
try:
|
|
|
|
import yaml
|
|
|
|
except ImportError:
|
|
|
|
yaml = None
|
|
|
|
|
|
|
|
try:
|
|
|
|
from yaml import CLoader
|
|
|
|
except ImportError:
|
|
|
|
CLoader = None
|
|
|
|
|
|
|
|
print(json.dumps(dict(
|
|
|
|
yaml=bool(yaml),
|
|
|
|
cloader=bool(CLoader),
|
|
|
|
)))
|