Copies a created dist to an output dir. This makes it easy to navigate to the dist to investigate it or call build.py, though you do not in general need to do this and can use the apk command instead.
(self, args)
| 936 | |
| 937 | @require_prebuilt_dist |
| 938 | def export_dist(self, args): |
| 939 | """Copies a created dist to an output dir. |
| 940 | |
| 941 | This makes it easy to navigate to the dist to investigate it |
| 942 | or call build.py, though you do not in general need to do this |
| 943 | and can use the apk command instead. |
| 944 | """ |
| 945 | ctx = self.ctx |
| 946 | dist = dist_from_args(ctx, args) |
| 947 | if dist.needs_build: |
| 948 | raise BuildInterruptingException( |
| 949 | 'You asked to export a dist, but there is no dist ' |
| 950 | 'with suitable recipes available. For now, you must ' |
| 951 | ' create one first with the create argument.') |
| 952 | if args.symlink: |
| 953 | shprint(sh.ln, '-s', dist.dist_dir, args.output_dir) |
| 954 | else: |
| 955 | shprint(sh.cp, '-r', dist.dist_dir, args.output_dir) |
| 956 | |
| 957 | @property |
| 958 | def _dist(self): |
nothing calls this directly
no test coverage detected