Skip to content

Commit a2252a3

Browse files
committed
Switch deprecation message to use feature_flag
1 parent 1418b5f commit a2252a3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/pip/_internal/operations/prepare.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,13 @@ def unpack_url(
216216
# be removed.
217217
if link.is_existing_dir():
218218
deprecated(
219-
"pip currently copies the source tree into a temporary directory "
220-
"before building it. In the future, pip will build packages in-place "
221-
"within the original source tree (\"in-tree build\"). Before the "
222-
"default behavior changes, we recommend testing your packages by "
223-
"adding the --use-feature=in-tree-build argument. Regarding the "
224-
"current out-of-tree default build behavior,\n",
219+
reason="pip copied the source tree into a temporary directory "
220+
"before building it. This is changing so that packages are built in-place "
221+
'within the original source tree ("in-tree build").',
225222
replacement=None,
226223
gone_in="21.3",
227-
issue=7555
224+
feature_flag="in-tree-build",
225+
issue=7555,
228226
)
229227
if os.path.isdir(location):
230228
rmtree(location)

0 commit comments

Comments
 (0)