def source(self, conanfile_path, source_folder, info_folder): """ :param conanfile_path: Absolute path to a conanfile :param source_folder: Absolute path where to put the files :param info_folder: Absolute path where to read the info files :param package_folder: Absolute path to the package_folder, only to have the var present :return: """ output = ScopedOutput("PROJECT", self._user_io.out) # only infos if exist conanfile = self._load_consumer_conanfile(conanfile_path, info_folder, output) conanfile_folder = os.path.dirname(conanfile_path) if conanfile_folder != source_folder: output.info("Executing exports to: %s" % source_folder) _execute_export(conanfile_path, conanfile, source_folder, source_folder, output) config_source_local(source_folder, conanfile, conanfile_folder, output)
def source(self, conanfile_path, source_folder, info_folder): """ :param conanfile_path: Absolute path to a conanfile :param source_folder: Absolute path where to put the files :param info_folder: Absolute path where to read the info files :param package_folder: Absolute path to the package_folder, only to have the var present :return: """ output = ScopedOutput("PROJECT", self._user_io.out) # only infos if exist conanfile = self._load_consumer_conanfile(conanfile_path, info_folder, output) conanfile_folder = os.path.dirname(conanfile_path) if conanfile_folder != source_folder: output.info("Executing exports to: %s" % source_folder) _execute_export(conanfile_path, conanfile, source_folder, source_folder, output) config_source_local(source_folder, conanfile, output)