-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning to deprecate path functions in conanfile #16247
Add warning to deprecate path functions in conanfile #16247
Conversation
edit: Now I found the explanations here: #12173 (comment) , which clear some things up. I am confused about this deprecation, as the related conan-io/docs#2753 only mentions arguments for using pathlib instead of against it, followed by a decision against it. I know that for some of the ..._folder variables, no ..._path exists, but I would have preferred to add those and thus extend the support for Luckily, resolving this deprecation is replacing all |
Yes, probably the biggest factor was the fact that passing
Sorry about that. Even if it sounded a good idea initially, it was a mistake, and we should have followed the Python zen, to try to have only 1 way of doing things, and as the old |
Changelog: Feature: Deprecate use of path accessors in ConanFile.
Docs: omit
There's a duplicity between the
path
andfolder
functions in the conanfile, for examplepackage_path
returns the value ofpackage_folder
but using thePath
library.Also the
path
functions weren't documented, so they were not intended for use.For this reasons we are deprecating all the
path
functions and encourage use of thefolder
functions instead. Warnings were added to notify users when using thepath
functions to use thefolder
functions instead.Closes: #12173
Related to: conan-io/docs#2753