conanfile.py

Reference for conanfile.py: attributes, methods, etc.

Important

conanfile.py recipes uses a variety of attributes and methods to operate. In order to avoid collisions and conflicts, follow these rules:

  • Public attributes and methods, like build(), self.package_folder, are reserved for Conan. Don’t use public members for custom fields or methods in the recipes.

  • Use “protected” access for your own members, like self._my_data or def _my_helper(self):. Conan only reserves “protected” members starting with _conan.

Contents: