|
|
@ -15,7 +15,6 @@
|
|
|
|
import errno
|
|
|
|
import errno
|
|
|
|
import glob
|
|
|
|
import glob
|
|
|
|
import hashlib
|
|
|
|
import hashlib
|
|
|
|
import importlib.metadata as importlib_metadata
|
|
|
|
|
|
|
|
import itertools
|
|
|
|
import itertools
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import logging
|
|
|
|
import logging
|
|
|
@ -24,6 +23,13 @@ import os.path
|
|
|
|
import struct
|
|
|
|
import struct
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
# For python 3.8 and later
|
|
|
|
|
|
|
|
import importlib.metadata as importlib_metadata
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
# For everyone else
|
|
|
|
|
|
|
|
import importlib_metadata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log = logging.getLogger('stevedore._cache')
|
|
|
|
log = logging.getLogger('stevedore._cache')
|
|
|
|
|
|
|
|
|
|
|
@ -104,7 +110,8 @@ def _build_cacheable_data():
|
|
|
|
# importlib-metadata 4.0 or later (or stdlib importlib.metadata in
|
|
|
|
# importlib-metadata 4.0 or later (or stdlib importlib.metadata in
|
|
|
|
# Python 3.9 or later)
|
|
|
|
# Python 3.9 or later)
|
|
|
|
real_groups = {
|
|
|
|
real_groups = {
|
|
|
|
name: real_groups.select(name=name) for name in real_groups.names
|
|
|
|
group: real_groups.select(group=group)
|
|
|
|
|
|
|
|
for group in real_groups.groups
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Convert the namedtuple values to regular tuples
|
|
|
|
# Convert the namedtuple values to regular tuples
|
|
|
|