mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
* re-add setuptools resolve vs load workaround * add deprecatedin tag so we can find this easier
This commit is contained in:
parent
c0ee738a84
commit
6bef6b471a
1 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,13 @@ def _available_backends():
|
|||
|
||||
if _available_backends_list is None:
|
||||
_available_backends_list = [
|
||||
ep.resolve()
|
||||
# DeprecatedIn16
|
||||
# setuptools 11.3 deprecated support for the require parameter to
|
||||
# load(), and introduced the new resolve() method instead.
|
||||
# We previously removed this fallback, but users are having issues
|
||||
# where Python loads an older setuptools due to various syspath
|
||||
# weirdness.
|
||||
ep.resolve() if hasattr(ep, "resolve") else ep.load(require=False)
|
||||
for ep in pkg_resources.iter_entry_points(
|
||||
"cryptography.backends"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue