Skip to content

[Doc] Unclarity in provided example for package_id method #3919

@ytsarko

Description

@ytsarko

Hello!

Currently the way package_id() method is documented leads to a confusion: why package_id method of recipe returns some inner function called 'package_id '? Just for the clarity, this is the current definition of package_id method on the documentation page:

def package_id(self):
    def package_id(self):
        if self.package_type == "header-library":
            self.info.clear()
        else:
            self.info.settings.rm_safe("compiler.libcxx")
            self.info.settings.rm_safe("compiler.cppstd")

Please check whether documentation snippet of package_id method doesn't contain any error and if not, what is the intention of returning a reference to the function from package_id method then?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions