File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
src/pip/_internal/operations Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change
1
+ Improve deprecation warning regarding the copying of source trees when installing from a local directory.
Original file line number Diff line number Diff line change @@ -216,14 +216,16 @@ def unpack_url(
216
216
# be removed.
217
217
if link .is_existing_dir ():
218
218
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
+ ),
224
225
replacement = None ,
225
226
gone_in = "21.3" ,
226
- issue = 7555
227
+ feature_flag = "in-tree-build" ,
228
+ issue = 7555 ,
227
229
)
228
230
if os .path .isdir (location ):
229
231
rmtree (location )
You can’t perform that action at this time.
0 commit comments