#NEWLINE# def get_running_package( global_context , cached_package , bento_info ) : #NEWLINE# #INDENT# 'Return a PackageDescription instance after evaluation of the flags set\n    up at configure time.\n\n    Example\n    -------\n    For this bento.info::\n\n        Name: foo\n\n        Flag: bundle\n            Description: foo\n            Default: true\n\n        Library:\n            if flag(bundle):\n                Packages: yeah\n\n    if bentomaker was run as follows::\n\n        bentomaker configure\n\n    get_running_package will return a PackageDescription instance with\n    package.packages set to ["yeah"], and if bentomaker was run as follows::\n\n        bentomaker configure --bundle=false\n\n    get_running_package will return a PackageDescription instance with\n    package.packages set to [].\n    ' #NEWLINE# package_options = cached_package . get_options ( bento_info ) #NEWLINE# configure_argv = global_context . retrieve_command_argv ( 'configure' ) #NEWLINE# flag_values = _get_package_user_flags ( flag_values , package_options , configure_argv ) #NEWLINE# return cached_package . get_package ( bento_info , flag_values )