Skip to content

Commit 41f116f

Browse files
Update build script helper to use python3 (#273)
* Use `python3` in build-script-helper Python2 is no longer supported by the Swift project. * Remove unused variable from build script `output_dir` is written to but never used.
1 parent 049540a commit 41f116f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build-script-helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""
44
This source file is part of the Swift.org open source project
55
6-
Copyright (c) 2021 Apple Inc. and the Swift project authors
6+
Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
77
Licensed under Apache License v2.0 with Runtime Library Exception
88
99
See https://swift.org/LICENSE.txt for license information
@@ -93,8 +93,6 @@ def run(args):
9393
printerr('Executing: %s' % ' '.join(e.cmd))
9494
sys.exit(1)
9595

96-
output_dir = os.path.realpath(os.path.join(args.build_dir, args.configuration))
97-
9896
if should_run_action('generate-xcodeproj', args.build_actions):
9997
print("** Generating Xcode project for %s **" % package_name)
10098
try:

0 commit comments

Comments
 (0)