From 8eeaf0b5046fb727e65190fc1c6f4107f2e8840a Mon Sep 17 00:00:00 2001 From: Ethan Kusters Date: Wed, 1 Jun 2022 12:23:24 -0700 Subject: [PATCH 1/2] Use `python3` in build-script-helper Python2 is no longer supported by the Swift project. --- build-script-helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-script-helper.py b/build-script-helper.py index de56786a78..b0c110e9cb 100755 --- a/build-script-helper.py +++ b/build-script-helper.py @@ -1,9 +1,9 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This source file is part of the Swift.org open source project - Copyright (c) 2021 Apple Inc. and the Swift project authors + Copyright (c) 2021-2022 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See https://swift.org/LICENSE.txt for license information From 91cc3f07e25d6ac43121ba235cea20f2b0557ed5 Mon Sep 17 00:00:00 2001 From: Ethan Kusters Date: Wed, 1 Jun 2022 12:23:42 -0700 Subject: [PATCH 2/2] Remove unused variable from build script `output_dir` is written to but never used. --- build-script-helper.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/build-script-helper.py b/build-script-helper.py index b0c110e9cb..669821edda 100755 --- a/build-script-helper.py +++ b/build-script-helper.py @@ -93,8 +93,6 @@ def run(args): printerr('Executing: %s' % ' '.join(e.cmd)) sys.exit(1) - output_dir = os.path.realpath(os.path.join(args.build_dir, args.configuration)) - if should_run_action('generate-xcodeproj', args.build_actions): print("** Generating Xcode project for %s **" % package_name) try: