Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this deprecation warning mean, and how to fix it?

Tags:

python

pip

When I install a local python package with pip 21.1 (pip install .)I get a deprecation warning:

 DEPRECATION: 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.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.

I do not understand what what means. Also, how can I fix it?

like image 946
Alex Avatar asked Apr 28 '21 13:04

Alex


People also ask

How do I stop deprecation warning in Python?

How do I turn off deprecated warnings in Python? Use warnings. filterwarnings() to ignore deprecation warnings Call warnings. filterwarnings(action, category=DeprecationWarning) with action as "ignore" and category set to DeprecationWarning to ignore any deprecation warnings that may rise.

How do you prevent deprecated in Java?

Hiding Java method deprecation problems Just perform that quick change, and maybe do a rebuild, and all of the deprecated method warnings will go away. Another approach is to decorate the the code you write with the @SuppressWarnings( “deprecation” ) annotation.

What is deprecation warning in node JS?

DeprecationWarning errors are logged by the Node. js runtime when your code (or one of the dependencies in your code) calls a deprecated API. These warnings usually include a DEP deprecation code. They are logged using console. error and end up in your CloudWatch logs.

How do you silence a ruby warning?

The TL;DR is that you need to use RUBYOPT='-W:no-deprecated -W:no-experimental' to disable the deprecations. This will also disable experimental feature warnings as well.


1 Answers

In short, my understanding:

  • pip builds a tree of dependencies between packages.
  • currently pip requires a temporary folder
  • this leads sometimes to issues, especially if relative paths are involved, see here.

To fix this and additional issues. they will change the behaviour of pip install. So to test if that will affect you in any way you can test it before by using --use-feature=in-tree-build.

As mentioned in the warning there is a github discussion which explains it in much more detail here.

like image 176
Andreas Avatar answered Oct 06 '22 00:10

Andreas