From de7abcbb5963d45645ca00343acedec755f38de8 Mon Sep 17 00:00:00 2001 From: toni Date: Mon, 9 Oct 2017 11:28:22 +0200 Subject: [PATCH 1/2] Fixing compilation problems on osx 10.12 with xcode 9. *Important Note: When the xcode project is created, in order to get kivy working you have to manually add the following framewors: - CoreMotion - libz - libsqlite3 --- recipes/hostpython/__init__.py | 2 ++ recipes/python/__init__.py | 1 + recipes/python/posixmodule.patch | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 recipes/python/posixmodule.patch diff --git a/recipes/hostpython/__init__.py b/recipes/hostpython/__init__.py index f85e7c6..2645fce 100644 --- a/recipes/hostpython/__init__.py +++ b/recipes/hostpython/__init__.py @@ -60,6 +60,8 @@ class HostpythonRecipe(Recipe): ]) build_env["CFLAGS"] = " ".join([ "--sysroot={}".format(sdk_path), + "-arch x86_64", + "-mmacosx-version-min=10.12", "-I{}".format(join(self.ctx.dist_dir, "hostlibffi", "usr", "local", "include")) ]) diff --git a/recipes/python/__init__.py b/recipes/python/__init__.py index ac0d65f..24cde16 100644 --- a/recipes/python/__init__.py +++ b/recipes/python/__init__.py @@ -35,6 +35,7 @@ class PythonRecipe(Recipe): self.apply_patch("ipv6.patch") if "openssl.build_all" in self.ctx.state: self.append_file("ModulesSetup.openssl", "Modules/Setup.local") + self.apply_patch("posixmodule.patch") self.set_marker("patched") diff --git a/recipes/python/posixmodule.patch b/recipes/python/posixmodule.patch new file mode 100644 index 0000000..d993d77 --- /dev/null +++ b/recipes/python/posixmodule.patch @@ -0,0 +1,16 @@ +Index: Python-2.7.1/Modules/posixmodule.c +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +--- Python-2.7.1/Modules/posixmodule.c (date 1290868829000) ++++ Python-2.7.1/Modules/posixmodule.c (revision ) +@@ -2644,7 +2644,7 @@ + #endif + } + +- ++#undef HAVE_SYSTEM + #ifdef HAVE_SYSTEM + PyDoc_STRVAR(posix_system__doc__, + "system(command) -> exit_status\n\n\ From 22763cb5bd4aefba6b2a94f106f65e34d14dc0bd Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 25 Oct 2017 16:10:15 +0200 Subject: [PATCH 2/2] doc: Updated the readme to list available commands --- README.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.rst b/README.rst index a6f1110..4233f5d 100644 --- a/README.rst +++ b/README.rst @@ -173,6 +173,30 @@ things you can do to achieve this: Note that these packages will not run in the iOS emulators, so use them only for deployment. +Usage +----- + +:: + + Usage: + + ./toolchain.py [] + + 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 + FAQ ---