def _build(self, spec_file_path): try: Version(self.args.app_version) except VersionError: log.error("Version format incorrect: %s", self.args.app_version) log.error("""Valid version numbers: 0.10.0, 1.1b, 1.2.1a3 Visit url for more info: http://semver.org/ """) sys.exit(1) build_args = [] if self.args.clean is True: build_args.append("--clean") if self.args.pyi_log_info is False: build_args.append("--log-level=ERROR") build_args.append("--distpath={}".format(self.new_dir)) build_args.append("--workpath={}".format(self.work_dir)) build_args.append("-y") build_args.append(spec_file_path) log.debug("Build cmd: %s", " ".join([b for b in build_args])) build_args = [str(x) for x in build_args] pyi_build(build_args)
def _build(self, args, spec_file_path): try: Version(args.app_version) except VersionError: log.error('Version format incorrect: %s', args.app_version) log.error("""Valid version numbers: 0.10.0, 1.1b, 1.2.1a3 Visit url for more info: http://semver.org/ """) sys.exit(1) build_args = [] if args.clean is True: build_args.append('--clean') build_args.append('--distpath={}'.format(self.new_dir)) build_args.append('--workpath={}'.format(self.work_dir)) build_args.append('-y') build_args.append(spec_file_path) log.debug('Build cmd: %s', ' '.join([b for b in build_args])) build_args = [str(x) for x in build_args] pyi_build(build_args)
def _build(self, args, spec_file_path): try: Version(args.app_version) except dsdev_utils.exceptions.VersionError: log.error('Version format incorrect: %s', args.app_version) log.error("""Valid version numbers: 0.10.0, 1.1b, 1.2.1a3 Visit url for more info: http://semver.org/ """) sys.exit(1) build_args = [] if args.clean is True: build_args.append('--clean') build_args.append('--distpath={}'.format(self.new_dir)) build_args.append('--workpath={}'.format(self.work_dir)) build_args.append('-y') build_args.append(spec_file_path) log.debug('Build cmd: %s', ' '.join([b for b in build_args])) build_args = [str(x) for x in build_args] pyi_build(build_args)