Module Import alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A unittest conans.test.tools TestClient conans.util.files load N/A os ConanfileExtendTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A client N/A TestClient N/A base 
from conans import ConanFile

class ConanLib(ConanFile):
    name = "lib"
    version = "0.1"
 N/A files N/A conanfile.py base N/A N/A N/A client save files N/A N/A N/A client run export user/channel N/A base 
from conans import ConanFile

class ConanOtherLib(ConanFile):
    name = "otherlib"
    version = "0.2"
    options = {"otherlib_option": [1, 2, 3]}
    default_options="otherlib_option=3"
 N/A files N/A conanfile.py base N/A N/A N/A client save files N/A N/A N/A client run export user/channel N/A N/A self base_folder N/A client base_folder N/A test_base N/A N/A self N/A N/A N/A base 
from conans import ConanFile

class HelloConan2(ConanFile):
    name = "test"
    version = "1.9"
    requires = "lib/0.1@user/channel"
    options = {"test_option": [1, 2, 3]}
    default_options="test_option=2"
    my_flag = False

    def build(self):
        self.output.info("MyFlag %s" % self.my_flag)
     N/A extension 
from conans import ConanFile, CMake
from conanfile import HelloConan2

class DevConanFile(HelloConan2):
    my_flag = True

    def config(self):
        self.options["otherlib"].otherlib_option = 1

    def requirements(self):
        self.requires("otherlib/0.2@user/channel")

     N/A files N/A conanfile.py conanfile_dev.py base extension N/A client N/A TestClient N/A self base_folder N/A N/A N/A client save files N/A N/A N/A client run install --build N/A conaninfo N/A load N/A N/A N/A os path join N/A client current_folder conaninfo.txt N/A N/A N/A self assertIn lib/0.1@user/channel conaninfo N/A N/A N/A self assertIn test_option=2 conaninfo N/A N/A N/A self assertNotIn otherlib/0.2@user/channel conaninfo N/A N/A N/A self assertNotIn otherlib:otherlib_option=1 conaninfo N/A N/A N/A client run build N/A N/A N/A self assertIn MyFlag False N/A N/A client user_io out N/A N/A N/A client run info N/A N/A N/A self assertIn lib/0.1@user/channel N/A N/A client user_io out N/A N/A N/A self assertNotIn otherlib/0.2@user/channel N/A N/A client user_io out N/A N/A N/A client run install --build --file=conanfile_dev.py N/A conaninfo N/A load N/A N/A N/A os path join N/A client current_folder conaninfo.txt N/A N/A N/A self assertIn lib/0.1@user/channel conaninfo N/A N/A N/A self assertIn test_option=2 conaninfo N/A N/A N/A self assertIn otherlib/0.2@user/channel conaninfo N/A N/A N/A self assertIn otherlib:otherlib_option=1 conaninfo N/A N/A N/A client run build -f=conanfile_dev.py N/A N/A N/A self assertIn MyFlag True N/A N/A client user_io out N/A N/A N/A client run info  -f=conanfile_dev.py N/A N/A N/A self assertIn lib/0.1@user/channel N/A N/A client user_io out N/A N/A N/A self assertIn otherlib/0.2@user/channel N/A N/A client user_io out N/A test_txt N/A N/A self N/A N/A N/A base [requires]
lib/0.1@user/channel
 N/A extension [requires]
lib/0.1@user/channel
otherlib/0.2@user/channel

[options]
otherlib:otherlib_option = 1
 N/A files N/A conanfile.txt conanfile_dev.txt base extension N/A client N/A TestClient N/A self base_folder N/A N/A N/A client save files N/A N/A N/A client run install --build N/A conaninfo N/A load N/A N/A N/A os path join N/A client current_folder conaninfo.txt N/A N/A N/A self assertIn lib/0.1@user/channel conaninfo N/A N/A N/A self assertNotIn otherlib/0.2@user/channel conaninfo N/A N/A N/A self assertNotIn otherlib:otherlib_option=1 conaninfo N/A N/A N/A client run install --build --file=conanfile_dev.txt N/A conaninfo N/A load N/A N/A N/A os path join N/A client current_folder conaninfo.txt N/A N/A N/A self assertIn lib/0.1@user/channel conaninfo N/A N/A N/A self assertIn otherlib/0.2@user/channel conaninfo N/A N/A N/A self assertIn otherlib:otherlib_option=1 conaninfo N/A N/A