Parses out any distribution-related arguments, and uses them to obtain a Distribution class instance for the build.
(ctx, args)
| 107 | |
| 108 | |
| 109 | def dist_from_args(ctx, args): |
| 110 | """Parses out any distribution-related arguments, and uses them to |
| 111 | obtain a Distribution class instance for the build. |
| 112 | """ |
| 113 | return Distribution.get_distribution( |
| 114 | ctx, |
| 115 | name=args.dist_name, |
| 116 | recipes=split_argument_list(args.requirements), |
| 117 | archs=args.arch, |
| 118 | ndk_api=args.ndk_api, |
| 119 | force_build=args.force_build, |
| 120 | require_perfect_match=args.require_perfect_match, |
| 121 | allow_replace_dist=args.allow_replace_dist) |
| 122 | |
| 123 | |
| 124 | def build_dist_from_args(ctx, dist, args): |
no test coverage detected