From dd830ffd762e620dd37d7d6745b88013a786e16e Mon Sep 17 00:00:00 2001 From: Ben Mares <15216687+maresb@users.noreply.github.com> Date: Tue, 27 Jul 2021 15:32:31 -0700 Subject: [PATCH] Switch deprecation message to use feature_flag --- src/pip/_internal/operations/prepare.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pip/_internal/operations/prepare.py b/src/pip/_internal/operations/prepare.py index eddbac26d51..abf27564471 100644 --- a/src/pip/_internal/operations/prepare.py +++ b/src/pip/_internal/operations/prepare.py @@ -216,15 +216,13 @@ def unpack_url( # be removed. if link.is_existing_dir(): deprecated( - "pip currently copies the source tree into a temporary directory " - "before building it. In the future, pip will build packages in-place " - "within the original source tree (\"in-tree build\"). Before the " - "default behavior changes, we recommend testing your packages by " - "adding the --use-feature=in-tree-build argument. Regarding the " - "current out-of-tree default build behavior,\n", + reason="pip copied the source tree into a temporary directory " + "before building it. This is changing so that packages are built in-place " + 'within the original source tree ("in-tree build").', replacement=None, gone_in="21.3", - issue=7555 + feature_flag="in-tree-build", + issue=7555, ) if os.path.isdir(location): rmtree(location)