Skip to main content

EntryClash

Two Python packages can both install a command called dotenv. which dotenv (or where.exe dotenv on Windows) shows the launcher on your path. EntryClash shows which packages claim that name, including in wheels you haven't installed yet.

Run it with Python 3.10 or newer. The single-file CLI uses only the standard library.

Try a real clash

From a checkout, download two small wheels into an empty wheelhouse directory. Neither package needs to be installed.

python -m pip download --no-cache-dir --no-deps --only-binary=:all: --require-hashes -r examples/dotenv.txt -d wheelhouse
python entryclash.py wheelhouse
SIKE!!
dotenv
  dotenv-cli==3.4.1 -> dotenv_cli.cli:main
  python-dotenv==1.0.1 -> dotenv.__main__:cli
Packages checked: 2 | Conflicting commands: 1

The second command exits with 1: either package installed into the same scripts directory would have to share the dotenv launcher. If you need both CLIs, give each its own virtual environment and invoke each environment's executable explicitly.

Everyday use

Question Command
Does anything in this environment clash? python entryclash.py
Who claims pytest here? python entryclash.py --command pytest
What would clash after installing these wheels here? python entryclash.py --against-env wheelhouse
Which script filenames do these wheels have in common? python entryclash.py --json wheelhouse

Use the python from the environment you want to inspect. A wheel directory is read one level deep. Supply one wheel per distribution for a single target environment; alternative builds aren't installed together. In --against-env mode a wheel replaces the installed version's declarations, just as an upgrade would. The report includes any existing clashes that would remain. Wheels alone are compared only with one another. EntryClash does not download dependencies.

In CI, use it as a GitHub Action on your built wheels (or run entryclash.py directly):

- uses: park-bit/entryclash@v0.1.3
  with:
    wheels: wheelhouse/

Exit codes: 0 = no matching collision found, 1 = at least one collision, 2 = unusable input. --command NAME accepts a command name or its launcher filename. --json includes the package, version and source of each claim.

What gets checked?

  • Entry points: console_scripts and gui_scripts generate launchers. EntryClash compares their filenames on the OS where you run it, including .exe on Windows.
  • Files shipped in a wheel: If two wheels both ship report.cmd in their own .data/scripts/ directories, the report names both wheels and prints the archive paths. In JSON the group is wheel_scripts. A nested file like helpers/report.cmd keeps its subdirectory, so it doesn't clash with report.cmd at the top level.
  • Already installed: If a distribution has a RECORD file, EntryClash checks its recorded paths under the current interpreter's scripts directory. These show up as installed_scripts; a generated launcher already counted by its entry point is counted only once. Without RECORD, only its entry points are visible. How to check a copied script when RECORD is missing.

The report tells you who claims a filename, not which copy is on disk or which command your shell will run. Files outside that scripts directory, shell aliases and ordinary Python modules aren't checked. --ignore-case and --no-ignore-case change filename comparison; they don't change which launchers the host OS generates.

Credits and feedback

Daniel Habenicht described the CLI overwrite problem in pip. The reader follows the PyPA specifications for entry points, wheel installation paths, and installed file records. Bundled entry-point wrappers follow pip's installer behavior. The demo uses published wheels from dotenv-cli and python-dotenv; neither is bundled here.

If a launcher gives a surprising result, open an issue with the package names and versions, OS, command you ran, and what you expected. To run the tests: python -m unittest discover -s tests -v.

Maintained by park-bit. MIT license.

Metadata

Release files for entryclash 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entryclash 0.1.3
File Size Uploaded Provenance Actions
entryclash-0.1.3.tar.gz 10.2 kB With provenance Details for entryclash-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entryclash 0.1.3
File Interpreter ABI Platform Actions
entryclash-0.1.3-py3-none-any.whl Python 3 none any Details for entryclash-0.1.3-py3-none-any.whl

Total release size: 18.8 kB

Release files / entryclash-0.1.3.tar.gz

Download URL entryclash-0.1.3.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a0e2d8a7761cc77a555077ca4992ed3e5e278f412f9ab1620fe91a17286563f
BLAKE2b-256 checksum
How to use checksums
c61dcc846d2c5c962d7334c964866f0909dde4b51cd5454de99c2ededed6bd1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / entryclash-0.1.3-py3-none-any.whl

Download URL entryclash-0.1.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71fd2dfa0341359a7cc46035a221c3f4dec636e9cd50285112a1905db322c5d0
BLAKE2b-256 checksum
How to use checksums
1646c1bbfc195f6aa0c2469bad3d0dc7320e1841c37873c69bf244efbe46bc81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for entryclash 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for entryclash-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page