mirror of https://github.com/pypa/pip
Switch deprecation message to use feature_flag
This commit is contained in:
parent
1418b5fc04
commit
a2252a3b33
|
@ -216,15 +216,13 @@ def unpack_url(
|
|||
# be removed.
|
||||
if link.is_existing_dir():
|
||||
deprecated(
|
||||
"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",
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue