|
…
|
||
|---|---|---|
| .. | ||
| Resources | ||
| README.md | ||
Python on watchOS README
This document provides a quick overview of some watchOS specific features in the Python distribution.
Python on watchOS is largely the same as Python on iOS; most of the instructions in the iOS README can be used for watchOS builds, substituting:
-
watchOSas the identifier forPlatforms/Appleinvocations; e.g.,python Platforms/Apple build watchOSpython Platforms/Apple ci watchOSpython Platforms/Apple test watchOS
-
watchOS resources are stored in the
Platforms/Apple/watchOS/Resourcesdirectory -
The watchOS SDK version is controlled with the
WATCHOS_SDK_VERSIONenvironment variable. -
The minimum supported watchOS SDK version is controlled with the
WATCHOS_DEPLOYMENT_TARGETenvironment variable. -
When referencing platforms, the watchOS compiler triples are:
arm64_32-apple-watchosfor Apple Watch devicesarm64-apple-watchos-simulatorfor Apple Watch simulators on ARM64 hardwarex86_64-apple-watchos-simulatorfor Apple Watch simulators on x86_64 hardware
-
The watchOS testbed Xcode template project is stored in
Platforms/Apple/testbed/watchOSTestbed. -
platform.ios_ver()will return watchOS-relevant version information.