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.
Install with pip install entryclash (or uvx entryclash), or download the single-file CLI (Python 3.10+, standard library only).
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
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.4
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_scriptsandgui_scriptsgenerate launchers. EntryClash compares their filenames on the OS where you run it, including.exeon Windows. - Files shipped in a wheel: If two wheels both ship
report.cmdin their own.data/scripts/directories, the report names both wheels and prints the archive paths. In JSON the group iswheel_scripts. A nested file likehelpers/report.cmdkeeps its subdirectory, so it doesn't clash withreport.cmdat the top level. - Already installed: If a distribution has a
RECORDfile, EntryClash checks its recorded paths under the current interpreter's scripts directory. These show up asinstalled_scripts; a generated launcher already counted by its entry point is counted only once. WithoutRECORD, only its entry points are visible. How to check a copied script whenRECORDis 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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entryclash-0.1.4.tar.gz | 10.2 kB | With provenance | Details for entryclash-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entryclash-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for entryclash-0.1.4-py3-none-any.whl |
Total release size: 18.7 kB
Release files / entryclash-0.1.4.tar.gz
| Download URL | entryclash-0.1.4.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7db7a4ab321f5bc766bfa6d99b5cfef4342b31f20c10ae8b24af460edaa62494
|
|
BLAKE2b-256 checksum How to use checksums |
aec75380918d289c54fec38633589f8927514b8cb3a0fe19fc9dfc0b400ff4b4
|
| 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 logRelease files / entryclash-0.1.4-py3-none-any.whl
| Download URL | entryclash-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa805245f8358572447f512a6131db43e562c49b99ea9f73f9ae8a156cb02ed
|
|
BLAKE2b-256 checksum How to use checksums |
a82268018dac9ae3315a70aea2882ed7d62ad99b33165b7401444eca5d3d1eb8
|
| 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 logSecurity for entryclash 0.1.4
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.
Attestation for entryclash-0.1.4.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 logA 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.