GithubHelp home page GithubHelp logo

pombredanne / python-ios-support Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pybee/python-ios-support

0.0 2.0 0.0 761 KB

A meta-package for building a version of Python that can be embedded into an iOS project.

License: MIT License

Makefile 100.00%

python-ios-support's Introduction

Python iOS Support

This is a meta-package for building a version of Python that can be embedded into an iOS, tvOS or watchOS project.

It works by downloading, patching, and building a fat binary OpenSSL and Python, and packaging them both in iOS Framework format.

The binaries support the $(ARCHS_STANDARD) set - that is, armv7 and arm64 for iOS devices, arm64 for appleTV devices, and armv7k for watchOS. This should enable the code to run on:

  • iPhone
    • iPhone 4s
    • iPhone 5
    • iPhone 5c
    • iPhone 5s
    • iPhone 6
    • iPhone 6 Plus
    • iPhone 6s
    • iPhone 6s Plus
  • iPad Pro
  • iPad
    • iPad 2
    • iPad (3rd gen)
    • iPad (4th gen)
    • iPad Air
    • iPad Air 2
    • iPad retina
  • iPad Mini
    • iPad Mini (1st gen)
    • iPad Mini 2
    • iPad Mini 3
    • iPad Mini 4
  • iPod Touch
    • iPod Touch (4th gen)
    • iPod Touch (5th gen)
    • iPod Touch (6th gen)
  • Apple TV
    • 4th gen
  • Apple Watch

This repository branch builds a packaged version of Python 3.5.1. Other Python versions are available by cloning other branches of the main repository.

Quickstart

Pre-built versions of the frameworks can be downloaded for iOS, for tvOS, and for watchOS, and added to your project.

Alternatively, to build the frameworks on your own, download/clone this repository, and then in the root directory, and run:

  • make (or make all) to build everything.
  • make iOS to build everything for iOS.
  • make tvOS to build everything for tvOS.
  • make watchOS to build everything for watchOS.

This should:

  1. Download the original source packages
  2. Patch them as required for compatibility with the selected OS
  3. Build the packages as XCode-compatible frameworks.

The build products will be in the build directory; the compiled frameworks will be in the dist directory.

Acknowledgements

The approach to framework packaging is drawn from Jeff Verkoeyen, and Ernesto García's tutorials.

python-ios-support's People

Contributors

freakboy3742 avatar glasnt avatar mkhon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.