move recipes around

This commit is contained in:
Akinwale Ariwodola 2020-09-25 00:06:37 +01:00
parent 256cd1213f
commit 4d0020cc0d
56 changed files with 646 additions and 2319 deletions

339
kivy_ios.egg-info/PKG-INFO Normal file
View file

@ -0,0 +1,339 @@
Metadata-Version: 2.1
Name: kivy-ios
Version: 1.1.2.dev0
Summary: Kivy for iOS
Home-page: https://github.com/kivy/kivy-ios
Author: The Kivy team
Author-email: kivy-dev@googlegroups.com
License: UNKNOWN
Description: # Kivy for iOS
[![kivy-ios](https://github.com/kivy/kivy-ios/workflows/kivy-ios/badge.svg)](https://github.com/kivy/kivy-ios/actions?query=workflow%3Akivy-ios)
[![PyPI version](https://badge.fury.io/py/kivy-ios.svg)](https://badge.fury.io/py/kivy-ios)
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](#sponsors)
This toolchain is designed to compile the necessary libraries for iOS to run
your application and manage the creation of the Xcode project.
We do not provide any binary distributions of this toolchain.
You do need to compile it at least once before creating your Xcode project.
The toolchain supports:
- iPhone Simulator (x86_64)
- iPhone / iOS (armv7 and arm64)
These recipes are not ported to the new toolchain yet:
- lxml
## Installation & requirements
Before we start, we strongly advise to use a Python virtual environment to install Python packages.
python3 -m venv venv
. venv/bin/activate
Install [Kivy for iOS from PyPI](https://pypi.org/project/kivy-ios) with pip like any Python package.
pip3 install kivy-ios
Additionally you would need few system dependencies and configuration.
- Xcode 10 or above, with an iOS SDK and command line tools installed:
xcode-select --install
- Using brew, you can install the following dependencies:
brew install autoconf automake libtool pkg-config
brew link libtool
## Using the toolchain
Any Python extensions or C/C++ library must be compiled: you need to have what
we call a `recipe` to compile it. For example, Python, libffi, SDL2, SDL_image,
freetype... all the dependencies, compilation and packaging instructions are
contained in a `recipe`.
You can list the available recipes and their versions with:
$ toolchain recipes
audiostream master
click 7.1.2
cymunk master
ffmpeg 2.6.3
ffpyplayer v3.2
flask 1.1.2
freetype 2.5.5
hostlibffi 3.2.1
hostpython3 3.7.1
ios master
itsdangerous 1.1.0
jinja2 2.11.2
kivy 1.10.1
libffi 3.2.1
libjpeg v9a
libpng 1.6.26
markupsafe 1.1.1
moodstocks 4.1.5
numpy 1.16.4
openssl 1.0.2k
photolibrary master
pillow 6.1.0
plyer master
pycrypto 2.6.1
pykka 1.2.1
pyobjus master
python3 3.7.1
pyyaml 3.11
sdl2 2.0.8
sdl2_image 2.0.0
sdl2_mixer 2.0.0
sdl2_ttf 2.0.12
werkzeug 1.0.1
Then, start the compilation with:
$ toolchain build python3 kivy
You can build recipes at the same time by adding them as parameters:
$ toolchain build python3 openssl kivy
Recipe builds can be removed via the clean command e.g.:
$ toolchain clean openssl
You can install package that don't require compilation with pip::
$ toolchain pip install plyer
The Kivy recipe depends on several others, like the sdl\* and python recipes.
These may in turn depend on others e.g. sdl2_ttf depends on freetype, etc.
You can think of it as follows: the kivy recipe will compile everything
necessary for a minimal working version of Kivy.
Don't grab a coffee, just do diner. Compiling all the libraries for the first
time, 3x over (remember, 3 archs, x86_64, armv7, arm64) will take time.
For a complete list of available commands, type:
$ toolchain
## Create the Xcode project
The `toolchain.py` can create the initial Xcode project for you::
$ toolchain create <title> <app_directory>
$ toolchain create Touchtracer ~/code/kivy/examples/demo/touchtracer
Your app directory must contain a main.py. A directory named `<title>-ios`
will be created, with an Xcode project in it.
You can open the Xcode project using::
$ open touchtracer-ios/touchtracer.xcodeproj
Then click on `Play`, and enjoy.
> *Did you know ?*
>
> Everytime you press `Play`, your application directory will be synced to
> the `<title>-ios/YourApp` directory. Don't make changes in the -ios
> directory directly.
## Configuring your App
You can configure and customize your app in various ways:
- Set the icon and launch images in XCode. Note that XCode requires that you
specify these assests per device or/and iOS version.
- When you first build your XCode project, a 'main.m' file is created in your
XCode project folder. This file configures your environment variables and
controls your application startup. You can edit this file to customize your
launch environment.
- Kivy uses SDL, and as soon as the application starts the SDL main, the launch
image will disappear. To prevent that, you need to have 2 files named
`Default.png` and `Default-Landscape.png`, and put them
in the `Resources` folder in Xcode (not in your application folder)
> *Did you know ?*
>
> If you wish to restrict your apps orientation, you should do this via
> the 'export_orientation' function in 'main.m'. The XCode orientation
> settings should be set to support all.
## Using recipes
Recipes are used to install and compile any libraries you may need to use. These
recipes follow the same format as those used by the
[Python-for-Android](https://github.com/kivy/python-for-android) sister project.
Please refer to the
[recipe documentation](https://python-for-android.readthedocs.io/en/latest/recipes/)
there for more detail.
## Reducing the application size
If you would like to reduce the size of your distributed app, there are a few
things you can do to achieve this:
- Minimize the `build/pythonX/lib/pythonXX.zip`: this contains all the python
modules. You can edit the zip file and remove all the files you'll not use
(reduce encodings, remove xml, email...)
- Go to the settings `panel` > `build`, search for `"strip"` options, and
triple-check that they are all set to `NO`. Stripping does not work with
Python dynamic modules and will remove needed symbols.
- By default, the iOS package compiles binaries for all processor
architectures, namely x86_64, armv7 and arm64 as per the guidelines from
Apple. You can reduce the size of your ipa significantly by removing the
x86_64 architecture as they are used only for the emulator.
The procedure is to first compile/build all the host recipes as is:
toolchain build hostpython3
Then build all the rest of the recipes using --arch=armv7 --arch=arm64
arguments as follows:
toolchain build python3 kivy --arch=armv7 --arch=arm64
Note that these packages will not run in the iOS emulators, so use them
only for deployment.
## Usage
```
toolchain <command> [<args>]
Available commands:
build Build a recipe (compile a library for the required target
architecture)
clean Clean the build of the specified recipe
distclean Clean the build and the result
recipes List all the available recipes
status List all the recipes and their build status
Xcode:
create Create a new xcode project
update Update an existing xcode project (frameworks, libraries..)
launchimage Create Launch images for your xcode project
icon Create Icons for your xcode project
pip Install a pip dependency into the distribution
pip3 Install a pip dependency into the python 3 distribution
```
## Development
Alternatively, it's also possible to clone the repository and use all the
described commands in the above sections.
Clone and install it to your local virtual environment:
git clone https://github.com/kivy/kivy-ios.git
cd kivy-ios/
python3 -m venv venv
. venv/bin/activate
pip install -e .
Then use the `toolchain.py` script:
python toolchain.py --help
## FAQ
### Fatal error: "stdio.h" file not found
You need to install the Command line tools: `xcode-select --install`
### You must build with bitcode disabled (Xcode setting ENABLE_BITCODE should be No).
We don't support bitcode. You need to go to the project setting, and disable bitcode.
### You don't have permissions to run
It is due to invalid archs, search for them and check it. Maybe you
targetted a simulator but have only armv7/arm64. Maybe you want to target
your iPad but it as only x86_64.
### Why does the python multiprocess/subprocess module not work?
The iOS application model does not currently support multi-processing in a
cross-platform compatible way. The application design focuses on minimizing
processor usage (to minimize power consumption) and promotes an
[alternative concurrency model](https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html).
If you need to make use of multiple processes, you should consider using
[PyObjus](https://github.com/kivy/pyobjus) to leverage native iOS
functionals for this.
## Support
If you need assistance, you can ask for help on our mailing list:
* User Group : https://groups.google.com/group/kivy-users
* Email : kivy-users@googlegroups.com
We also have a Discord channel:
* Server : https://chat.kivy.org
* Channel : #support
## Contributing
We love pull requests and discussing novel ideas. Check out our
[contribution guide](http://kivy.org/docs/contribute.html) and
feel free to improve Kivy for iOS.
The following mailing list and IRC channel are used exclusively for
discussions about developing the Kivy framework and its sister projects:
* Dev Group : https://groups.google.com/group/kivy-dev
* Email : kivy-dev@googlegroups.com
Discord channel:
* Server : https://chat.kivy.org
* Channel : #dev
## License
Kivy for iOS is released under the terms of the MIT License. Please refer to the
LICENSE file.
## Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/kivy#backer)]
<a href="https://opencollective.com/kivy#backers" target="_blank"><img src="https://opencollective.com/kivy/backers.svg?width=890"></a>
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/kivy#sponsor)]
<a href="https://opencollective.com/kivy/sponsor/0/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/1/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/2/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/3/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/4/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/5/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/6/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/7/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/8/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/9/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/9/avatar.svg"></a>
Platform: UNKNOWN
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown

View file

@ -0,0 +1,214 @@
README.md
setup.py
kivy_ios/__init__.py
kivy_ios/context_managers.py
kivy_ios/toolchain.py
kivy_ios.egg-info/PKG-INFO
kivy_ios.egg-info/SOURCES.txt
kivy_ios.egg-info/dependency_links.txt
kivy_ios.egg-info/entry_points.txt
kivy_ios.egg-info/requires.txt
kivy_ios.egg-info/top_level.txt
kivy_ios/__pycache__/__init__.cpython-37.pyc
kivy_ios/__pycache__/context_managers.cpython-37.pyc
kivy_ios/__pycache__/toolchain.cpython-37.pyc
kivy_ios/recipes/__init__.py
kivy_ios/recipes/hostpython.py
kivy_ios/recipes/python.py
kivy_ios/recipes/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/__pycache__/python.cpython-37.pyc
kivy_ios/recipes/appdirs/__init__.py
kivy_ios/recipes/appdirs/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/asn1crypto/__init__.py
kivy_ios/recipes/asn1crypto/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/attrs/__init__.py
kivy_ios/recipes/attrs/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/audiostream/__init__.py
kivy_ios/recipes/audiostream/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/base58/__init__.py
kivy_ios/recipes/base58/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/cffi/__init__.py
kivy_ios/recipes/cffi/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/click/__init__.py
kivy_ios/recipes/click/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/colorama/__init__.py
kivy_ios/recipes/colorama/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/cryptography/__init__.py
kivy_ios/recipes/cryptography/getentropy.patch
kivy_ios/recipes/cryptography/osrandom.patch
kivy_ios/recipes/cryptography/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/curly/__init__.py
kivy_ios/recipes/curly/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/cymunk/__init__.py
kivy_ios/recipes/cymunk/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/docopt/__init__.py
kivy_ios/recipes/docopt/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/ecdsa/__init__.py
kivy_ios/recipes/ecdsa/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/ffmpeg/__init__.py
kivy_ios/recipes/ffmpeg/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/ffpyplayer/__init__.py
kivy_ios/recipes/ffpyplayer/misc-visibility.patch
kivy_ios/recipes/ffpyplayer/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/flask/__init__.py
kivy_ios/recipes/flask/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/freetype/__init__.py
kivy_ios/recipes/freetype/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/host_setuptools/__init__.py
kivy_ios/recipes/host_setuptools/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/host_setuptools/setuptools/README.rst
kivy_ios/recipes/host_setuptools3/__init__.py
kivy_ios/recipes/host_setuptools3/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/host_setuptools3/setuptools/README.rst
kivy_ios/recipes/hostlibffi/__init__.py
kivy_ios/recipes/hostlibffi/ffi-3.0.13-sysv.S.patch
kivy_ios/recipes/hostlibffi/fix-win32-unreferenced-symbol.patch
kivy_ios/recipes/hostlibffi/generate-darwin-source-and-headers-python3-items.patch
kivy_ios/recipes/hostlibffi/libffi-xcode10.patch
kivy_ios/recipes/hostlibffi/public_include.patch
kivy_ios/recipes/hostlibffi/staticlib.patch
kivy_ios/recipes/hostlibffi/staticlib2.patch
kivy_ios/recipes/hostlibffi/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/hostopenssl/__init__.py
kivy_ios/recipes/hostpython3/ModulesSetup
kivy_ios/recipes/hostpython3/__init__.py
kivy_ios/recipes/hostpython3/pyconfig_detection.patch
kivy_ios/recipes/hostpython3/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/idna/__init__.py
kivy_ios/recipes/idna/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/ios/__init__.py
kivy_ios/recipes/ios/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/ios/src/ios.pyx
kivy_ios/recipes/ios/src/ios_browser.m
kivy_ios/recipes/ios/src/ios_filechooser.m
kivy_ios/recipes/ios/src/ios_mail.m
kivy_ios/recipes/ios/src/ios_utils.m
kivy_ios/recipes/ios/src/ios_wrapper.h
kivy_ios/recipes/ios/src/setup.py
kivy_ios/recipes/ipaddress/__init__.py
kivy_ios/recipes/ipaddress/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/itsdangerous/__init__.py
kivy_ios/recipes/itsdangerous/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/jinja2/__init__.py
kivy_ios/recipes/jinja2/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/jsonschema/__init__.py
kivy_ios/recipes/jsonschema/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/keyring/__init__.py
kivy_ios/recipes/keyring/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/kivent_core/__init__.py
kivy_ios/recipes/kivent_core/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/kivy/__init__.py
kivy_ios/recipes/kivy/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/lbry/__init__.py
kivy_ios/recipes/lbry/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/libcurl/__init__.py
kivy_ios/recipes/libcurl/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/libffi/__init__.py
kivy_ios/recipes/libffi/ffi-3.0.13-sysv.S.patch
kivy_ios/recipes/libffi/fix-win32-unreferenced-symbol.patch
kivy_ios/recipes/libffi/generate-darwin-source-and-headers-python3-items.patch
kivy_ios/recipes/libffi/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/libjpeg/__init__.py
kivy_ios/recipes/libjpeg/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/libpng/__init__.py
kivy_ios/recipes/libpng/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/libzbar/__init__.py
kivy_ios/recipes/libzbar/werror.patch
kivy_ios/recipes/libzbar/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/markupsafe/__init__.py
kivy_ios/recipes/markupsafe/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/netifaces/__init__.py
kivy_ios/recipes/netifaces/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/numpy/__init__.py
kivy_ios/recipes/numpy/numpy-1.16.4.patch
kivy_ios/recipes/numpy/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/openssl/__init__.py
kivy_ios/recipes/openssl/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pbkdf2/__init__.py
kivy_ios/recipes/pbkdf2/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/photolibrary/__init__.py
kivy_ios/recipes/photolibrary/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pillow/__init__.py
kivy_ios/recipes/pillow/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/plyer/__init__.py
kivy_ios/recipes/plyer/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/protobuf/__init__.py
kivy_ios/recipes/protobuf/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pyasn1/__init__.py
kivy_ios/recipes/pyasn1-modules/__init__.py
kivy_ios/recipes/pyasn1-modules/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pyasn1/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pycrypto/__init__.py
kivy_ios/recipes/pycrypto/hash_SHA2_template.c.patch
kivy_ios/recipes/pycrypto/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pykka/__init__.py
kivy_ios/recipes/pykka/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/pyobjus/__init__.py
kivy_ios/recipes/pyobjus/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/python3/ModulesSetup
kivy_ios/recipes/python3/ModulesSetup.mobile
kivy_ios/recipes/python3/__init__.py
kivy_ios/recipes/python3/config.sub.patch
kivy_ios/recipes/python3/configure.patch
kivy_ios/recipes/python3/ctypes_duplicate.patch
kivy_ios/recipes/python3/disable_explicit_blake2.patch
kivy_ios/recipes/python3/dynload_shlib.patch
kivy_ios/recipes/python3/posixmodule.patch
kivy_ios/recipes/python3/pyconfig_detection.patch
kivy_ios/recipes/python3/random.patch
kivy_ios/recipes/python3/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/python3/mock_modules/_sqlite3/__init__.py
kivy_ios/recipes/python3/mock_modules/_sqlite3/_sqlite3.cpython-38-darwin.so
kivy_ios/recipes/pyyaml/__init__.py
kivy_ios/recipes/pyyaml/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/sdl2/__init__.py
kivy_ios/recipes/sdl2/uikit-transparent.patch
kivy_ios/recipes/sdl2/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/sdl2_image/__init__.py
kivy_ios/recipes/sdl2_image/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/sdl2_mixer/__init__.py
kivy_ios/recipes/sdl2_mixer/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/sdl2_ttf/__init__.py
kivy_ios/recipes/sdl2_ttf/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/setuptools/__init__.py
kivy_ios/recipes/setuptools/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/six/__init__.py
kivy_ios/recipes/six/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/werkzeug/__init__.py
kivy_ios/recipes/werkzeug/__pycache__/__init__.cpython-37.pyc
kivy_ios/recipes/zbarlight/__init__.py
kivy_ios/recipes/zbarlight/zbarlight_1_2.patch
kivy_ios/recipes/zbarlight/__pycache__/__init__.cpython-37.pyc
kivy_ios/tools/__init__.py
kivy_ios/tools/biglink
kivy_ios/tools/cythonize.py
kivy_ios/tools/liblink
kivy_ios/tools/external/__init__.py
kivy_ios/tools/external/xcassets.py
kivy_ios/tools/templates/cookiecutter.json
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/bridge.h
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/bridge.m
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/icon.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/main.m
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/{{ cookiecutter.project_name }}-Info.plist
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-568h@2x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-667h@2x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-763h@3x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-Landscape.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-Landscape@2x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-Portrait.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-Portrait@2x~ipad.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default-Portrait@3x~ipad.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default@2x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/LaunchImages/Default@3x.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/README.txt
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/android.txt
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/pictures.kv
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/shadow32.png
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/images/5509213687_ffd18df0b9_b.jpg
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/images/5552597274_de8b3fb5d2_b.jpg
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/YourApp/images/faust_github.jpg
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/{{ cookiecutter.project_name }}.xcodeproj/project.pbxproj
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/{{ cookiecutter.project_name }}.xcodeproj/project.xcworkspace/contents.xcworkspacedata
kivy_ios/tools/templates/{{ cookiecutter.project_name }}-ios/{{ cookiecutter.project_name }}/Images.xcassets/AppIcon.appiconset/Contents.json

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,3 @@
[console_scripts]
toolchain = kivy_ios.toolchain:main

View file

@ -0,0 +1,5 @@
cookiecutter
pbxproj
Pillow
requests
sh

View file

@ -0,0 +1 @@
kivy_ios

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class AppdirsRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = AppdirsRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class ArgparseRecipe(PythonRecipe):
version = "1.2.1"
url = "https://pypi.python.org/packages/source/a/argparse/argparse-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ArgparseRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class Asn1CryptoRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Asn1CryptoRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class AttrsRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = AttrsRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class Base58Recipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Base58Recipe()

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe, shprint
from kivy_ios.toolchain import CythonRecipe, shprint
from os.path import join
import os
import sh
@ -33,7 +33,7 @@ class CffiRecipe(CythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "build_ext", _env=build_env)
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class ColoramaRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ColoramaRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class ConstantlyRecipe(PythonRecipe):
version = "15.1.0"
url = "https://pypi.python.org/packages/source/c/constantly/constantly-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ConstantlyRecipe()

View file

@ -1,6 +1,6 @@
from os.path import join
from toolchain import CythonRecipe, PythonRecipe, Recipe
from toolchain import shprint
from kivy_ios.toolchain import CythonRecipe, PythonRecipe, Recipe
from kivy_ios.toolchain import shprint
import os
import sh
@ -52,7 +52,7 @@ class CryptographyRecipe(CythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
pythonpath = join(dest_dir, 'lib', 'python2.7', 'site-packages')
pythonpath = join(dest_dir, 'lib', 'python3.8', 'site-packages')
build_env['PYTHONPATH'] = pythonpath
args = [hostpython, "setup.py", "install", "--prefix", dest_dir]
shprint(*args, _env=build_env)

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class DnsPythonRecipe(PythonRecipe):
version = "1.12.0"
url = "http://www.dnspython.org/kits/{version}/dnspython-{version}.zip"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = DnsPythonRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class DocoptRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = DocoptRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class EcdsaRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = EcdsaRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class Enum34Recipe(PythonRecipe):
version = "1.1.6"
url = "https://pypi.python.org/packages/source/e/enum34/enum34-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Enum34Recipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class EnvparseRecipe(PythonRecipe):
version = "0.2.0"
url = "https://pypi.python.org/packages/source/e/envparse/envparse-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = EnvparseRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class Functools32Recipe(PythonRecipe):
version = "3.2.3-2"
url = "https://pypi.python.org/packages/source/f/functools32/functools32-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Functools32Recipe()

View file

@ -1,62 +0,0 @@
from os.path import join
from toolchain import Recipe
from toolchain import shprint
import os
import sh
libffi_tpl = """
prefix=%PREFIX%
exec_prefix=${prefix}
libdir=${exec_prefix}/build/Release
includedir=${libdir}/build_macosx-x86_64/include
Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: %VERSION%
Libs: -L${libdir} -lffi
Cflags: -I${includedir}
"""
class HostCffiRecipe(Recipe):
name = "host_cffi"
version = "1.11.5"
archs = ["x86_64"]
url = "https://pypi.python.org/packages/source/c/cffi/cffi-{version}.tar.gz"
depends = ["libffi", "host_setuptools", "pycparser"]
def get_recipe_env(self, arch):
sdk_path = sh.xcrun("--sdk", "macosx", "--show-sdk-path").strip()
env = super(HostCffiRecipe, self).get_recipe_env(arch)
env["CC"] = "clang -Qunused-arguments -fcolor-diagnostics"
env["LDFLAGS"] = " ".join([
"-undefined dynamic_lookup",
#"-shared",
"-L{}".format(join(self.ctx.dist_dir, "hostlibffi", "usr", "local", "lib"))
])
env["CFLAGS"] = " ".join([
"--sysroot={}".format(sdk_path),
"-I{}".format(join(self.ctx.dist_dir, "hostlibffi", "usr", "local", "include"))
])
return env
def prebuild_arch(self, arch):
hostpython = sh.Command(self.ctx.hostpython)
build_dir = self.get_build_dir(arch.arch)
build_env = self.get_recipe_env(arch)
os.chdir(build_dir)
# generate a fake libffi pkg-config to let cffi use it
hostlibffi = Recipe.get_recipe("hostlibffi", self.ctx)
with open("libffi.pc", "w") as fd:
tpl = libffi_tpl.replace("%PREFIX%",
hostlibffi.get_build_dir(arch.arch))
tpl = tpl.replace("%VERSION%", hostlibffi.version)
fd.write(tpl)
build_env["PKG_CONFIG"] = "/usr/local/bin/pkg-config"
build_env["PKG_CONFIG_PATH"] = build_dir
shprint(hostpython, "setup.py", "build_ext", _env=build_env)
shprint(hostpython, "setup.py", "install", _env=build_env)
recipe = HostCffiRecipe()

View file

@ -1,73 +1,39 @@
from toolchain import Recipe, shprint
from os.path import join, exists, basename, dirname
from os import makedirs
from kivy_ios.toolchain import Recipe, shprint
from os.path import join
import sh
import shutil
import logging
def ensure_dir(filename):
if not exists(filename):
makedirs(filename)
logger = logging.getLogger(__name__)
class HostOpenSSLRecipe(Recipe):
version = "1.0.2l"
class HostOpensslRecipe(Recipe):
version = "1.1.1f"
url = "http://www.openssl.org/source/openssl-{version}.tar.gz"
archs = ["x86_64"]
libraries = ["libssl.a", "libcrypto.a"]
include_dir = "include"
def get_build_env(self):
build_env = self.ctx.env.copy()
self.build_env_x86_84 = build_env
return build_env
def build_x86_64(self):
arch = self.archs[0]
sdk_path = sh.xcrun("--sdk", "macosx", "--show-sdk-path").strip()
dist_dir = join(self.ctx.dist_dir,"hostopenssl")
print("OpenSSL for host to be installed at: {}").format(dist_dir)
sh.perl(join(self.build_dir, "Configure"), "darwin64-x86_64-cc",
"--openssldir={}".format(dist_dir),
"--prefix={}".format(dist_dir))
build_env = self.get_build_env()
configure = sh.Command(join(self.build_dir, "Configure"))
shprint(configure,
"darwin64-x86_64-cc",
_env=build_env)
shprint(sh.make, "clean")
shprint(sh.make, "-j4", "build_libs")
shprint(sh.make, self.ctx.concurrent_make, "build_libs")
def install_include(self):
arch = self.archs[0]
print("Custom include file install...")
print("Dist dir = {}".format(self.ctx.dist_dir))
dest_dir = join(self.ctx.dist_dir,"hostopenssl","include")
if exists(dest_dir):
shutil.rmtree(dest_dir)
src_dir = join(self.ctx.build_dir,"hostopenssl",arch,"openssl-{}".format(self.version),"include")
shutil.copytree(src_dir,dest_dir)
def install(self):
sh.mkdir('-p', join(self.ctx.dist_dir, 'hostopenssl'))
sh.cp('-r', join(self.get_build_dir('x86_64'), 'include'),
join(self.ctx.dist_dir, 'hostopenssl', 'include'))
sh.mkdir('-p', join(self.ctx.dist_dir, 'hostopenssl', 'lib'))
sh.cp(join(self.get_build_dir('x86_64'), 'libssl.a'),
join(self.ctx.dist_dir, 'hostopenssl', 'lib'))
sh.cp(join(self.get_build_dir('x86_64'), 'libcrypto.a'),
join(self.ctx.dist_dir, 'hostopenssl', 'lib'))
def build_all(self):
filtered_archs = self.filtered_archs
print("Build {} for {} (filtered)".format(
self.name,
", ".join([x.arch for x in filtered_archs])))
for arch in self.filtered_archs:
self.build(arch)
name = self.name
if self.library:
print("Create lipo library for {}".format(name))
if not name.startswith("lib"):
name = "lib{}".format(name)
static_fn = join(self.ctx.dist_dir, "hostopenssl", "lib", "{}.a".format(name))
ensure_dir(dirname(static_fn))
print("Lipo {} to {}".format(self.name, static_fn))
self.make_lipo(static_fn)
if self.libraries:
print("Create multiple lipo for {}".format(name))
for library in self.libraries:
static_fn = join(self.ctx.dist_dir, "hostopenssl", "lib", basename(library))
ensure_dir(dirname(static_fn))
print(" - Lipo-ize {}".format(library))
self.make_lipo(static_fn, library)
print("Install include files for {}".format(self.name))
self.install_include()
print("Install frameworks for {}".format(self.name))
self.install_frameworks()
print("Install sources for {}".format(self.name))
self.install_sources()
print("Install {}".format(self.name))
self.install()
recipe = HostOpenSSLRecipe()
recipe = HostOpensslRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class IdnaRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = IdnaRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class IncrementalRecipe(PythonRecipe):
version = "17.5.0"
url = "https://pypi.python.org/packages/source/i/incremental/incremental-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = IncrementalRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class IpaddressRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = IpaddressRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class JsonrpcRecipe(PythonRecipe):
version = "1.2"
url = "https://pypi.python.org/packages/source/j/jsonrpc/jsonrpc-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = JsonrpcRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class JsonrpclibRecipe(PythonRecipe):
version = "0.1.7"
url = "https://pypi.python.org/packages/source/j/jsonrpclib/jsonrpclib-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = JsonrpclibRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class JsonschemaRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = JsonschemaRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class KeyringRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = KeyringRecipe()

View file

@ -1,41 +1,35 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class LbryRecipe(PythonRecipe):
version = "v0.20.0rc10"
version = "v0.81.0"
url = "https://github.com/lbryio/lbry/archive/{version}.tar.gz"
depends = [
"python",
"setuptools",
"twisted",
"cryptography",
"aiohttp",
"aioupnp",
"appdirs",
"argparse",
"docopt",
"async_timeout",
"base58",
"chardet",
"coincurve",
"colorama",
"dnspython",
"cryptography",
"defusedxml"
"docopt",
"ecdsa",
"envparse",
"jsonrpc",
"jsonrpclib",
"hachoir",
"keyring",
"lbryschema",
"lbryum",
"miniupnpc",
"mock",
"msgpack",
"pbkdf2",
"prometheus_client"
"pylru",
"pyyaml",
"pygithub",
"qrcode",
"requests",
"service_identity",
"six",
"slowaes",
"txjson-rpc",
"wsgiref",
"zope_interface",
"treq"
]
def install(self):
@ -45,7 +39,7 @@ class LbryRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = LbryRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class LbrySchemaRecipe(PythonRecipe):
version = "v0.0.16rc2"
url = "https://github.com/lbryio/lbryschema/archive/{version}.tar.gz"
depends = ["python", "setuptools", "ecdsa", "jsonschema", "protobuf"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = LbrySchemaRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class LbryumRecipe(PythonRecipe):
version = "v3.2.2rc1"
url = "https://github.com/lbryio/lbryum/archive/{version}.tar.gz"
depends = ["python", "setuptools", "appdirs", "ecdsa", "jsonrpclib", "keyring", "lbryschema"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = LbryumRecipe()

View file

@ -1,26 +0,0 @@
from toolchain import CythonRecipe, shprint
from os.path import join
import os
import sh
class MiniupnpcRecipe(CythonRecipe):
name = "miniupnpc"
version = "1.9"
url = "https://pypi.python.org/packages/source/m/miniupnpc/miniupnpc-{version}.tar.gz"
library = "libminiupnpc.a"
depends = ["python", "setuptools"]
cythonize = False
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = MiniupnpcRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class Pbkdf2Recipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Pbkdf2Recipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -15,7 +15,7 @@ class ProtobufRecipe(PythonRecipe):
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PATH'] = ''
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ProtobufRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class Pyasn1ModulesRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Pyasn1ModulesRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class Pyasn1Recipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = Pyasn1Recipe()

View file

@ -1,32 +0,0 @@
from os.path import join
from toolchain import PythonRecipe
from toolchain import shprint
import os
import sh
class PycparserRecipe(PythonRecipe):
version = "2.18"
url = "https://pypi.python.org/packages/source/p/pycparser/pycparser-{version}.tar.gz"
depends = ["python"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
# manually create expected directory in build directory
scripts_dir = join("build", "scripts-2.7")
if not os.path.exists(scripts_dir):
os.makedirs(scripts_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
pythonpath = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = pythonpath
build_env['PYTHONHOME'] = '/usr'
args = [hostpython, "setup.py", "install", "--prefix", dest_dir]
shprint(*args, _env=build_env)
#args = [hostpython, "setup.py", "install"]
#shprint(*args, _env=build_env)
recipe = PycparserRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class PyGithubRecipe(PythonRecipe):
version = "1.34"
url = "https://pypi.python.org/packages/source/p/pygithub/PyGithub-{version}.tar.gz"
depends = ["python", "setuptools", "pyjwt"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = PyGithubRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class PyJWTRecipe(PythonRecipe):
version = "1.6.4"
url = "https://pypi.python.org/packages/source/p/pyjwt/PyJWT-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = PyJWTRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class PyOpenSSLRecipe(PythonRecipe):
version = "17.4.0"
url = "https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-{version}.tar.gz"
depends = ["python", "setuptools", "cryptography", "six"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = PyOpenSSLRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class QrcodeRecipe(PythonRecipe):
version = "5.2.2"
url = "https://pypi.python.org/packages/source/q/qrcode/qrcode-{version}.tar.gz"
depends = ["python", "setuptools", "colorama", "six"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = QrcodeRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class RequestsRecipe(PythonRecipe):
version = "2.9.1"
url = "https://pypi.python.org/packages/source/r/requests/requests-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = RequestsRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class ServiceIdentityRecipe(PythonRecipe):
version = "16.0.0"
url = "https://pypi.python.org/packages/source/s/service_identity/service_identity-{version}.tar.gz"
depends = ["python", "setuptools", "attrs", "pyasn1", "pyasn1-modules", "pyopenssl"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ServiceIdentityRecipe()

View file

@ -1,4 +1,4 @@
from toolchain import CythonRecipe
from kivy_ios.toolchain import CythonRecipe
class SetuptoolsRecipe(CythonRecipe):
@ -10,7 +10,7 @@ class SetuptoolsRecipe(CythonRecipe):
def get_recipe_env(self, arch):
env = super(SetuptoolsRecipe, self).get_recipe_env(arch)
env["PYTHONPATH"] = self.get_build_dir(arch.arch) + "/iosbuild/lib/python2.7/site-packages"
env["PYTHONPATH"] = self.get_build_dir(arch.arch) + "/iosbuild/lib/python3.8/site-packages"
return env
def install(self):

View file

@ -1,4 +1,4 @@
from toolchain import PythonRecipe, shprint
from kivy_ios.toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
@ -14,7 +14,7 @@ class SixRecipe(PythonRecipe):
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = SixRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class SlowaesRecipe(PythonRecipe):
version = "0.1a1"
url = "https://pypi.python.org/packages/source/s/slowaes/slowaes-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = SlowaesRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class TreqRecipe(PythonRecipe):
version = "17.8.0"
url = "https://pypi.python.org/packages/source/t/treq/treq-{version}.tar.gz"
depends = ["python", "setuptools", "six", "twisted"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = TreqRecipe()

View file

@ -1,34 +0,0 @@
from toolchain import CythonRecipe, shprint
from os.path import join
import os
import sh
class TwistedRecipe(CythonRecipe):
name = "twisted"
version = "16.6.0"
url = "https://github.com/twisted/twisted/archive/twisted-{version}.tar.gz"
library = "libtwisted.a"
depends = ["python", "setuptools", "constantly", "incremental", "zope_interface"]
optional_depends = ["pyopenssl"]
cythonize = False
def prebuild_arch(self, arch):
if self.has_marker("patched"):
return
self.apply_patch("remove_portmap_extension.patch")
self.set_marker("patched")
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = TwistedRecipe()

View file

@ -1,14 +0,0 @@
--- twisted-twisted-16.6.0/src/twisted/python/_setup.py 2016-11-17 09:10:00.000000000 +0100
+++ twisted-twisted-16.6.0-patch/src/twisted/python/_setup.py 2018-06-02 08:05:51.000000000 +0100
@@ -187,11 +187,6 @@
sources=["src/twisted/python/_sendmsg.c"],
condition=lambda _: not _PY3 and sys.platform != "win32"),
- ConditionalExtension(
- "twisted.runner.portmap",
- sources=["src/twisted/runner/portmap.c"],
- condition=lambda builder: not _PY3 and
- builder._check_header("rpc/rpc.h")),
]

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class TxJsonRpcRecipe(PythonRecipe):
version = "0.5"
url = "https://pypi.python.org/packages/source/t/txJSON-RPC/txJSON-RPC-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = TxJsonRpcRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class TxRequestsRecipe(PythonRecipe):
version = "0.9.5"
url = "https://pypi.python.org/packages/source/t/txrequests/txrequests-{version}.tar.gz"
depends = ["python", "setuptools", "requests", "twisted"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = TxRequestsRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class WsgiRefRecipe(PythonRecipe):
version = "0.1.2"
url = "https://pypi.python.org/packages/source/w/wsgiref/wsgiref-{version}.zip"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = WsgiRefRecipe()

View file

@ -1,20 +0,0 @@
from toolchain import PythonRecipe, shprint
from os.path import join
import sh, os
class ZopeInterfaceRecipe(PythonRecipe):
version = "4.5.0"
url = "https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz"
depends = ["python", "setuptools"]
def install(self):
arch = list(self.filtered_archs)[0]
build_dir = self.get_build_dir(arch.arch)
os.chdir(build_dir)
hostpython = sh.Command(self.ctx.hostpython)
build_env = arch.get_env()
dest_dir = join(self.ctx.dist_dir, "root", "python")
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages')
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
recipe = ZopeInterfaceRecipe()

File diff suppressed because it is too large Load diff