本文档翻译自:https://docs.conan.io/en/latest/reference/conanfile.html
    conanfile.py的参考:attributes, methods等。

    :::info Important
    conanfile.py配方使用各种属性和方法进行操作。 为了避免冲突和冲突,请遵循以下规则:

    • 公共属性和方法(例如 build()self.package_folder)保留给柯南使用。 不要在配方中使用公共成员作为自定义字段或方法。
    • 对您自己的成员使用“受保护的”访问权限,例如self._my_datadef _my_helper(self):。 Conan仅保留以_conan开头的“受保护”成员。 :::