Skip to content

Commit

Permalink
Improve the phrasing of in-tree-build deprecation
Browse files Browse the repository at this point in the history
Context is explained in the following comment:
<#7555 (comment)>
  • Loading branch information
maresb committed Jul 29, 2021
1 parent a53f888 commit 7861b7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions news/10128.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve deprecation warning regarding the copying of source trees when installing from a local directory.
11 changes: 6 additions & 5 deletions src/pip/_internal/operations/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,12 @@ def unpack_url(
# be removed.
if link.is_existing_dir():
deprecated(
"A future pip version will change local packages to be built "
"in-place without first copying to a temporary directory. "
"We recommend you use --use-feature=in-tree-build to test "
"your packages with this new behavior before it becomes the "
"default.\n",
"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",
replacement=None,
gone_in="21.3",
issue=7555
Expand Down

0 comments on commit 7861b7d

Please sign in to comment.