Coder Social home page Coder Social logo

rmartin16 / cpython-apple-source-deps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beeware/cpython-apple-source-deps

0.0 0.0 0.0 28 KB

A meta-project for building the binary packages for iOS, tvOS and watchOS that a CPython build requires

License: MIT License

Makefile 100.00%

cpython-apple-source-deps's Introduction

CPython Apple source dependencies

A meta-package for building the binary packages for iOS, tvOS and watchOS that a CPython build requires. This includes:

  • BZip2
  • XZ
  • libFFI
  • OpenSSL 1.1
  • OpenSSL 3.0

The repository works by downloading, patching, and building binaries for each SDK target and architecture that is requried. The compiled library is packed into a tarball for distribution in "installed" form - that is, the contents of the include and lib folders are included.

The binaries support arm64 for iOS and appleTV devices, and arm64_32 for watchOS. They also supports device simulators on both x86_64 and M1 hardware. This should enable the code to run on:

  • iOS 12.0 or later, on:
    • iPhone (6s or later)
    • iPad (5th gen or later)
    • iPad Air (all models)
    • iPad Mini (2 or later)
    • iPad Pro (all models)
    • iPod Touch (7th gen or later)
  • tvOS 9.0 or later, on:
    • Apple TV (4th gen or later)
  • watchOS 4.0 or later, on:
    • Apple Watch (4th gen or later)

Quickstart

Unless you're trying to directly link against one of these libraries, you don't need to use this repository. When you obtain a CPython build for an Apple platform, it will have already been linked using these libraries.

If you do need to link against these libraries for some reason, you can use the pre-compiled versions that are published on the Github releases page. You don't need to compile them yourself.

However, if you do need to compile your own version for some reason:

  • Clone this repository
  • Create a Python 3 virtual environment. Any supported Python 3 release should be sufficient; some tools require python3 as part of their build.
  • In the root directory, run: - make (or make all) to build everything. - make iOS to build everything for iOS. - make BZip2 to build BZip2 for every platform - make BZip2-iOS to build BZip2 for iOS

This should:

  1. Download the original source packages
  2. Patch them as required for compatibility with the selected OS
  3. Build the libraries for the selected OS and architecture
  4. Package a tarball containing build products.

The resulting artefacts will be packaged as .tar.gz files in the dist folder.

cpython-apple-source-deps's People

Contributors

freakboy3742 avatar dependabot[bot] 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.