Skip to content

Commit

Permalink
Merge pull request #10129 from maresb/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Jul 30, 2021
2 parents f4910d2 + e8b5b58 commit 6da0819
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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.
14 changes: 8 additions & 6 deletions src/pip/_internal/operations/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,16 @@ 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",
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)
Expand Down

0 comments on commit 6da0819

Please sign in to comment.