#NEWLINE# def create_requirements( conanfile ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( not hasattr ( conanfile , 'requires' ) ) : #NEWLINE# #INDENT# return Requirements ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( conanfile . requires , tuple ) : #NEWLINE# #INDENT# return Requirements ( * conanfile . requires ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Requirements ( conanfile . requires ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise ConanException ( ( 'Error while initializing requirements. %s' % str ( e ) ) )