Skip to content

document python_requires_extend attribute #1694

@SSE4

Description

@SSE4

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions