Skip to content

Commit f3c7a47

Browse files
committed
Fix for Mac OS version bug
ignores .DS_Store files while comparing build-tools versions
1 parent 8983db5 commit f3c7a47

File tree

1 file changed

+2
-1
lines changed
  • pythonforandroid/bootstraps/sdl2/build

1 file changed

+2
-1
lines changed

pythonforandroid/bootstraps/sdl2/build/build.py

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ def make_package(args):
350350
sdk_dir = sdk_dir[8:]
351351

352352
# Try to build with the newest available build tools
353-
build_tools_versions = listdir(join(sdk_dir, 'build-tools'))
353+
ignored = {".DS_Store", ".ds_store"}
354+
build_tools_versions = [x for x in listdir(join(sdk_dir, 'build-tools')) if x not in ignored]
354355
build_tools_versions = sorted(build_tools_versions,
355356
key=LooseVersion)
356357
build_tools_version = build_tools_versions[-1]

0 commit comments

Comments
 (0)