Skip to content

Fix entry point scripts#2195

Merged
jaraco merged 2 commits into
pypa:masterfrom
ofek:fix
Jun 15, 2020
Merged

Fix entry point scripts#2195
jaraco merged 2 commits into
pypa:masterfrom
ofek:fix

Conversation

@ofek

@ofek ofek commented Jun 15, 2020

Copy link
Copy Markdown
Contributor

Summary of changes

Fix to #2194 @jaraco

Is there a better way to inject just the package name? I thought that is what spec was.

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.3/x64/bin/ddev", line 9, in <module>
    for entry_point in distribution('datadog-checks-dev==3.11.0').entry_points:
  File "/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/importlib/metadata.py", line 504, in distribution
    return Distribution.from_name(distribution_name)
  File "/opt/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/importlib/metadata.py", line 177, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: datadog-checks-dev==3.11.0

Pull Request Checklist

  • Changes have tests
  • News fragment added in changelog.d. See documentation for details

@cooperlees cooperlees left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this fix. Just a thought on the test side. Pretty common use case I feel.

Comment thread setuptools/command/easy_install.py
@jaraco jaraco merged commit 1d841d7 into pypa:master Jun 15, 2020
@ofek ofek deleted the fix branch June 15, 2020 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants