mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
352 B
Python
13 lines
352 B
Python
![]()
3 years ago
|
"""Packaging compatibility."""
|
||
|
from __future__ import (absolute_import, division, print_function)
|
||
|
__metaclass__ = type
|
||
|
|
||
|
try:
|
||
|
from packaging.specifiers import SpecifierSet
|
||
|
from packaging.version import Version
|
||
|
PACKAGING_IMPORT_ERROR = None
|
||
|
except ImportError as ex:
|
||
|
SpecifierSet = None
|
||
|
Version = None
|
||
|
PACKAGING_IMPORT_ERROR = ex
|