HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/setuptools_scm/discover.py
import os
from pkg_resources import iter_entry_points
from .utils import trace


def iter_matching_entrypoints(path, entrypoint):
    trace("looking for ep", entrypoint, path)
    for ep in iter_entry_points(entrypoint):
        if os.path.exists(os.path.join(path, ep.name)):
            if os.path.isabs(ep.name):
                trace("ignoring bad ep", ep)
            trace("found ep", ep)
            yield ep