diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-26 14:44:56 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-26 14:46:31 +0100 |
| commit | 62f9a0bde39aec0b4a13be441e5f12f568fc58b4 (patch) | |
| tree | cfdbcd66bc152578651a0d283e290af649b458d0 /setuptools/command | |
| parent | ba3995e5705a22e13bb5d2231ac22c77e4417747 (diff) | |
| download | python-setuptools-git-62f9a0bde39aec0b4a13be441e5f12f568fc58b4.tar.gz | |
Improve warnings in editable install
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/editable_wheel.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index d05c3a75..80c6d5d9 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -393,7 +393,7 @@ class _StaticPth: def __enter__(self): msg = f""" Editable install will be performed using .pth file to extend `sys.path` with: - {self.path_entries!r} + {list(map(os.fspath, self.path_entries))!r} """ _logger.warning(msg + _LENIENT_WARNING) return self @@ -503,7 +503,11 @@ class _TopLevelFinder: return self def __exit__(self, _exc_type, _exc_value, _traceback): - ... + msg = """\n + Please be careful with folders in your working directory with the same + name as your package as they may take precedence during imports. + """ + warnings.warn(msg, InformationOnly) def _can_symlink_files(base_dir: Path) -> bool: |
