This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author freakboy3742
Recipients freakboy3742
Date 2015-03-15.06:24:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426400747.11.0.0527548590348.issue23670@psf.upfronthosting.co.za>
In-reply-to
Content
Proposal: iOS should be a supported platform for Python development.

The attached patch is a first pass at a patch to achieve this. It is a single patch against Python 3.4.2 sources, and requires no pre- or post-configure modifications. 

Supporting iOS requires multiple builds - one for each of the hardware platforms that iOS supports (x86_64 simulator, ARMv7 and ARM64). These separate builds must then be merged into a single "fat" framework. The patch contains an iOS directory with a "meta" Makefile that manages this build-and-merge process. See the README in the iOS directory for details on usage.

The patch also introduces a new 'ios' platform type.

A sample XCode project for an iOS app is also provided as part of the patch.

iOS/README contains a couple of other notes about the build and the approach taken.

There are some known problems/limitations with this patch:

 * It's a patch against 3.4.2, not hg trunk

 * The code doesn't currently compile for ARMv7. In order to support ARM64, it has been necessary to use an unreleased trunk version of libffi; however, this version is currently broken for ARMv7. Older versions of libffi (including the formal 3.2.1 release) *do* work.

 * The patch doesn't currently provide any way to run the test suite on the target platform. Testing is currently based on a simple smoke test of some basic features.

So - the patch isn't ready for commit to trunk. I'm presenting it for the purposes of getting feedback on the broad approach while I continue to resolve the known issues.
History
Date User Action Args
2015-03-15 06:25:48freakboy3742setrecipients: + freakboy3742
2015-03-15 06:25:47freakboy3742setmessageid: <1426400747.11.0.0527548590348.issue23670@psf.upfronthosting.co.za>
2015-03-15 06:25:45freakboy3742linkissue23670 messages
2015-03-15 06:25:44freakboy3742create