pypa / pypa/setuptools

Add an entry point at runtime

Open
#1,067 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Is it possible to add new entry points to an application that is already running?

I tried:

std = pkg_resources.get_distribution('setuptools')

pkg_resources.EntryPoint.parse_group(
    'distutils.commands', 'antialias = setuptools.command.alias:alias', std)

pprint(std.get_entry_map())

But the new entry point is not listed in the output.

https://stackoverflow.com/q/44661815/6683335

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python example and the pkg_resources.EntryPoint.parse_group and get_entry_map calls mentioned in the report. Determine whether adding an entry point to a running application is intended to be supported and what observable behavior should result. The issue is done only when the expected runtime behavior and validation are clearly decided.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.