-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't consider dist-info in a wheel as "installed"
This applies to the new importlib.metadata backend. The legacy pkg_resources backend already does this (albeit accidentally). A package inside a wheel is not guaranteed to "work" when directly imported, so we should not treat it as an installed distribution.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Do not consider a ``.dist-info`` directory found inside a wheel-like zip file | ||
as metadata for an installed distribution. A package in a wheel is (by | ||
definition) not installed, and is not guaranteed to work due to how a wheel is | ||
structured. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters