-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks: fix the message in distutils pre-module-find hook
Fix the "retargetting to non-venv dir" message emitted from the pre-module-find hook in distutils. Due to incorrect comparison between parent path levels, the message was always emitted, even when the distutils was found in stdlib directory. Fix that comparison and handle the case when distutils is provided by setuptools. Lastly, demote the message from INFO to DEBUG.
- Loading branch information
Showing
1 changed file
with
22 additions
and
14 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