Skip to content

Commit 0ce461e

Browse files
committed
Merge branch 'main' into 3.13
2 parents cfd8b4e + 8019835 commit 0ce461e

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
fail-fast: false
9191
matrix:
92-
target: ['macOS', 'iOS', 'tvOS', 'watchOS']
92+
target: ['macOS', 'iOS', 'tvOS', 'watchOS', 'visionOS']
9393
include:
9494
- briefcase-run-args:
9595
- run-tests: false

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# - iOS - build everything for iOS
66
# - tvOS - build everything for tvOS
77
# - watchOS - build everything for watchOS
8+
# - visionOS - build everything for visionOS
89

910
# Current directory
1011
PROJECT_DIR=$(shell pwd)
@@ -57,6 +58,10 @@ TARGETS-watchOS=watchsimulator.x86_64 watchsimulator.arm64 watchos.arm64_32
5758
TRIPLE_OS-watchOS=watchos
5859
VERSION_MIN-watchOS=4.0
5960

61+
TARGETS-visionOS=xrsimulator.arm64 xros.arm64
62+
TRIPLE_OS-visionOS=xros
63+
VERSION_MIN-visionOS=2.0
64+
6065
# The architecture of the machine doing the build
6166
HOST_ARCH=$(shell uname -m)
6267
HOST_PYTHON=$(shell which python$(PYTHON_VER))
@@ -452,7 +457,8 @@ $$(PYTHON_LIB-$(sdk)): $$(foreach target,$$(SDK_TARGETS-$(sdk)),$$(PYTHON_LIB-$$
452457
mkdir -p $$(dir $$(PYTHON_LIB-$(sdk)))
453458
lipo -create -output $$@ $$^ \
454459
2>&1 | tee -a install/$(os)/$(sdk)/python-$(PYTHON_VERSION).lipo.log
455-
dsymutil $$@ -o $$(PYTHON_INSTALL-$(sdk))/Python.dSYM
460+
# Disable dSYM production (for now)
461+
# dsymutil $$@ -o $$(PYTHON_INSTALL-$(sdk))/Python.dSYM
456462

457463
$$(PYTHON_FRAMEWORK-$(sdk))/Info.plist: $$(PYTHON_LIB-$(sdk))
458464
@echo ">>> Install Info.plist for the $(sdk) SDK"
@@ -517,8 +523,9 @@ $$(PYTHON_STDLIB-$(sdk))/LICENSE.TXT: $$(PYTHON_LIB-$(sdk)) $$(PYTHON_FRAMEWORK-
517523
# Merge the binary modules from each target in the $(sdk) SDK into a single binary
518524
$$(foreach module,$$(wildcard $$(PYTHON_STDLIB-$$(firstword $$(SDK_TARGETS-$(sdk))))/lib-dynload/*),lipo -create -output $$(PYTHON_STDLIB-$(sdk))/lib-dynload/$$(notdir $$(module)) $$(foreach target,$$(SDK_TARGETS-$(sdk)),$$(PYTHON_STDLIB-$$(target))/lib-dynload/$$(notdir $$(module))); )
519525

520-
# Create dSYM files for each module
521-
$$(foreach module,$$(wildcard $$(PYTHON_STDLIB-$$(firstword $$(SDK_TARGETS-$(sdk))))/lib-dynload/*),dsymutil $$(PYTHON_STDLIB-$(sdk))/lib-dynload/$$(notdir $$(module)); )
526+
# # Disable dSYM production (for now)
527+
# # Create dSYM files for each module
528+
# $$(foreach module,$$(wildcard $$(PYTHON_STDLIB-$$(firstword $$(SDK_TARGETS-$(sdk))))/lib-dynload/*),dsymutil $$(PYTHON_STDLIB-$(sdk))/lib-dynload/$$(notdir $$(module)); )
522529

523530
# Copy in known-required xcprivacy files.
524531
# Libraries linking OpenSSL must provide a privacy manifest. The one in this repository
@@ -662,7 +669,8 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
662669
$$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/bin $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
663670
$$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/lib $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
664671
$$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/platform-config $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
665-
$$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/Python.dSYM $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
672+
# Disable dSYM production (for now)
673+
# $$(foreach sdk,$$(SDKS-$(os)),cp -r $$(PYTHON_INSTALL-$$(sdk))/Python.dSYM $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk)); )
666674

667675
ifeq ($(filter $(os),iOS visionOS),$(os))
668676
@echo ">>> Clone testbed project for $(os)"

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Python Apple Support
22
====================
33

44
This is a meta-package for building a version of Python that can be embedded
5-
into a macOS, iOS, tvOS, watchOS, or visionOS project.
5+
into a macOS, iOS, tvOS, watchOS project.
66

77
**This branch builds a packaged version of Python 3.13**.
88
Other Python versions are available by cloning other branches of the main

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ guides:
2222
* [macOS](https://docs.python.org/3/using/mac.html)
2323
* [iOS](https://docs.python.org/3/using/ios.html#adding-python-to-an-ios-project)
2424

25-
For tvOS, watchOS, and visionOS, you should be able to broadly follow the instructions
25+
For tvOS, and watchOS, you should be able to broadly follow the instructions
2626
in the iOS guide, changing some platform names in the first script. The testbed projects
2727
generated on iOS and visionOS may be used as rough references as well.
2828

0 commit comments

Comments
 (0)