Skip to content

Commit 1418b5f

Browse files
committed
Improve the phrasing of in-tree-build deprecation
Context is explained in the following comment: <#7555 (comment)>
1 parent 06f8cfb commit 1418b5f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

news/10128.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve deprecation warning regarding the copying of source trees when installing from a local directory.

src/pip/_internal/operations/prepare.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,12 @@ def unpack_url(
216216
# be removed.
217217
if link.is_existing_dir():
218218
deprecated(
219-
"A future pip version will change local packages to be built "
220-
"in-place without first copying to a temporary directory. "
221-
"We recommend you use --use-feature=in-tree-build to test "
222-
"your packages with this new behavior before it becomes the "
223-
"default.\n",
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",
224225
replacement=None,
225226
gone_in="21.3",
226227
issue=7555

0 commit comments

Comments
 (0)