summaryrefslogtreecommitdiff
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-02-06 14:25:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2022-02-06 14:25:00 -0500
commitf507f76273467a737f340ecd6a2926f48fa44386 (patch)
tree996b15ffe3a87b516e51e2d22500d7272947466a /setuptools/dist.py
parentabf002112b77c26102a60116a0336ad2e4f56611 (diff)
downloadpython-setuptools-git-f507f76273467a737f340ecd6a2926f48fa44386.tar.gz
Port check_importable to metadata.EntryPoint
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index b0aea37b..9aaaf31c 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -225,7 +225,7 @@ sequence = tuple, list
def check_importable(dist, attr, value):
try:
- ep = pkg_resources.EntryPoint.parse('x=' + value)
+ ep = metadata.EntryPoint(value=value, name=None, group=None)
assert not ep.extras
except (TypeError, ValueError, AttributeError, AssertionError) as e:
raise DistutilsSetupError(