From 502a3b270fafd9b76b8cd66f208e40dc95424e23 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 6 Feb 2020 01:06:24 +0530 Subject: [PATCH] Deprecate installing packages w/o install-record.txt --- src/pip/_internal/operations/install/legacy.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/operations/install/legacy.py b/src/pip/_internal/operations/install/legacy.py index 2d4adc4f62c..28e6c7cd486 100644 --- a/src/pip/_internal/operations/install/legacy.py +++ b/src/pip/_internal/operations/install/legacy.py @@ -73,7 +73,16 @@ def install( ) if not os.path.exists(record_filename): - logger.debug('Record file %s not found', record_filename) + logger.warning('Record file %s not found', record_filename) + deprecated( + reason=( + "Package did not generate an install-record.txt, which " + "would render it not-uninstallable." + ), + gone_in="20.3", + replacement=None, + issue=7450, + ) return install_req.install_succeeded = True