File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ index f3828b10e1..03bce2aa25 100644
375
375
+ _bootstrap._verbose_message('Adding Apple Framework dylib finder at {}', frameworks_folder)
376
376
+ sys.meta_path.append(AppleFrameworkFinder(frameworks_folder))
377
377
diff --git a/Lib/platform.py b/Lib/platform.py
378
- index d6412e169b..2bf6b979b0 100755
378
+ index d6412e169b..d1532ba89c 100755
379
379
--- a/Lib/platform.py
380
380
+++ b/Lib/platform.py
381
381
@@ -449,6 +449,25 @@
@@ -421,17 +421,17 @@ index d6412e169b..2bf6b979b0 100755
421
421
+ # as uname.machine. On device it doesn't; but there's only
422
422
+ # on CPU architecture on device
423
423
+ def get_ios():
424
- + if sys.implementation._multiarch.endswith('simulator' ):
424
+ + if getattr( sys.implementation, "_simulator", False ):
425
425
+ return os.uname().machine
426
426
+ return 'arm64'
427
427
+
428
428
+ def get_tvos():
429
- + if sys.implementation._multiarch.endswith('simulator' ):
429
+ + if getattr( sys.implementation, "_simulator", False ):
430
430
+ return os.uname().machine
431
431
+ return 'arm64'
432
432
+
433
433
+ def get_watchos():
434
- + if sys.implementation._multiarch.endswith('simulator' ):
434
+ + if getattr( sys.implementation, "_simulator", False ):
435
435
+ return os.uname().machine
436
436
+ return 'arm64_32'
437
437
+
You can’t perform that action at this time.
0 commit comments