Skip to content
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

document python_requires_extend attribute #1694

Closed
SSE4 opened this issue May 12, 2020 · 1 comment
Closed

document python_requires_extend attribute #1694

SSE4 opened this issue May 12, 2020 · 1 comment
Assignees

Comments

@SSE4
Copy link
Contributor

SSE4 commented May 12, 2020

from conan-io/hooks#124 (comment)
it appears that attribute python_requires_extend is not documented on the attributes reference section. meanwhile, it's mentioned at least twice in the docs:

the documentation block suggested by @jgsogo :

python_requires_extend is the way to inherit from a base class inside a python requires. 
Conan injects this class as a base class to the conanfile in runtime. 
Why? We need to be able to load the python file with the recipe and 
the python requires information before resolving the classes/methods from 
python_requires (if we use Python inheritance we need to retrieve 
python_requires first and the interpreter will use the base class). This let Conan 
control the python_requires.
@SSE4
Copy link
Contributor Author

SSE4 commented Feb 3, 2021

block has been added

@SSE4 SSE4 closed this as completed Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants