Skip to content

Handle duplicate entry point scripts#333

Open
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:fix/skip-duplicate-entrypoint-script
Open

Handle duplicate entry point scripts#333
Sean-Kenneth-Doherty wants to merge 1 commit into
pypa:mainfrom
Sean-Kenneth-Doherty:fix/skip-duplicate-entrypoint-script

Conversation

@Sean-Kenneth-Doherty

@Sean-Kenneth-Doherty Sean-Kenneth-Doherty commented May 17, 2026

Copy link
Copy Markdown

Fixes #315.

Summary

  • track script paths generated from entry points during installation
  • if the wheel also contains a .data/scripts file for the same path, warn and skip that wheel-provided script instead of letting it overwrite the generated entry point script
  • add regressions for both the core install flow and the real filesystem destination

Validation

  • uv run --isolated --with pytest --with pytest-xdist --with coverage --with pytest-cov --with-editable . python -m pytest --cov=installer --cov-fail-under=100 --cov-report=term-missing --cov-context=test -n auto tests -q (152 passed, 100% coverage)
  • uv run --isolated --with ruff==0.15.12 ruff check src/installer/_core.py tests/test_core.py
  • uv run --isolated --with ruff==0.15.12 ruff format --check src/installer/_core.py tests/test_core.py
  • uv run --isolated --with mypy==2.0.0 --with httpx --with-editable . mypy src/installer/_core.py
  • uv run --isolated --with-editable . python -m compileall -q src/installer/_core.py tests/test_core.py
  • git diff --check origin/main...HEAD && git diff --check

Hosted CI, Read the Docs, and pre-commit.ci are green on this PR.

Assisted-by: OpenAI Codex

@Sean-Kenneth-Doherty

This comment was marked as low quality.

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.

Can't unpack wheel when script and entry_point have the same name

1 participant