Skip to content

Commit 304532b

Browse files
committed
Formatting tweaks for compat symlinks.
1 parent 3082267 commit 304532b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

master/custom/factories.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,10 @@ def current_setup(self, branch, worker, test_with_PTY=False, **kwargs):
11941194
# supported.
11951195
ShellCommand(
11961196
name="Set up compatibility symlink",
1197-
command="[ -e Platforms/Apple ] || ln -s ../Apple Platforms/Apple",
1197+
command=(
1198+
"[ -e Platforms/Apple ] "
1199+
"|| ln -s ../Apple Platforms/Apple"
1200+
),
11981201
),
11991202
# Build the full iOS XCframework, including a multi-arch simulator slice.
12001203
Compile(
@@ -1268,14 +1271,15 @@ def setup(self, **kwargs):
12681271
android_py = ["python3", "Platforms/Android"]
12691272
self.addSteps([
12701273
# This symlink is needed to support pre Python 3.15 builds - it makes the
1271-
# top level Andrdoid folder appear in the new Platforms/Android location,
1274+
# top level Android folder appear in the new Platforms/Android location,
12721275
# and links `__main__.py` to the older `android.py` script. This step can
12731276
# be removed when 3.14 is no longer supported.
12741277
ShellCommand(
12751278
name="Set up compatibility symlink",
12761279
command=(
1277-
"[ -e Platforms/Android ]"
1278-
"|| ln -s ../Android Platforms/Android"
1280+
"[ -e Platforms/Android ] "
1281+
"|| mkdir -p Platforms "
1282+
"&& ln -s ../Android Platforms/Android "
12791283
"&& ln -si ../Android/android.py Platforms/Android/__main__.py"
12801284
),
12811285
),

0 commit comments

Comments
 (0)