a
äx¶cA ã @ sr d dl Z d dlZg d¢Zzd dlmZ W n eyF d dlmZ Y n0 dd„ Zdd„ ZG dd „ d ƒZ d
d„ Z
dS )é N)ÚinstallÚ
NullFinderÚProtocol)r c C s t j | ƒ ¡ tƒ | S )zÒ
Class decorator for installation on sys.meta_path.
Adds the backport DistributionFinder to sys.meta_path and
attempts to disable the finder functionality of the stdlib
DistributionFinder.
)ÚsysÚ meta_pathÚappendÚdisable_stdlib_finder)Úcls© r
ú>/usr/lib/python3.9/site-packages/importlib_metadata/_compat.pyr s r c C s" dd„ } t | tjƒD ]}|`qdS )zÀ
Give the backport primacy for discovering path-based distributions
by monkey-patching the stdlib O_O.
See #91 for more background for rationale on this sketchy
behavior.
c S s t | dd ƒdkot| dƒS )NÚ
__module__Ú_frozen_importlib_externalÚfind_distributions)ÚgetattrÚhasattr)Úfinderr
r
r Úmatches% s ÿþþz&disable_stdlib_finder.