Skip to content

Commit 6da0819

Browse files
authored
Merge pull request #10129 from maresb/patch-1
2 parents f4910d2 + e8b5b58 commit 6da0819

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,16 @@ 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+
reason=(
220+
"pip copied the source tree into a temporary directory "
221+
"before building it. This is changing so that packages "
222+
"are built in-place "
223+
'within the original source tree ("in-tree build").'
224+
),
224225
replacement=None,
225226
gone_in="21.3",
226-
issue=7555
227+
feature_flag="in-tree-build",
228+
issue=7555,
227229
)
228230
if os.path.isdir(location):
229231
rmtree(location)

0 commit comments

Comments
 (0)