diff --git a/pythonforandroid/recipes/atom/__init__.py b/pythonforandroid/recipes/atom/__init__.py index 51923d5487..8ebc909e19 100644 --- a/pythonforandroid/recipes/atom/__init__.py +++ b/pythonforandroid/recipes/atom/__init__.py @@ -3,9 +3,21 @@ class AtomRecipe(CppCompiledComponentsPythonRecipe): site_packages_name = 'atom' - version = '0.3.10' - url = 'https://github.com/nucleic/atom/archive/master.zip' + version = '0.11.0' + url = 'https://github.com/nucleic/atom/archive/refs/tags/{version}.zip' + hostpython_prerequisites = ['cppy'] depends = ['setuptools'] + def build_arch(self, arch): + if arch.arch in ["armeabi-v7a", "x86"]: + warning("*******************************************") + warning("******** atom recipe was not built ********") + warning("* atom does not support 32 bit platforms **") + warning("*** Expect the following run time error ***") + warning("ModuleNotFoundError: No module named 'atom'") + warning("*******************************************") + else: + super().build_arch(arch) + recipe = AtomRecipe() diff --git a/pythonforandroid/recipes/cppy/__init__.py b/pythonforandroid/recipes/cppy/__init__.py new file mode 100644 index 0000000000..ea759d04d7 --- /dev/null +++ b/pythonforandroid/recipes/cppy/__init__.py @@ -0,0 +1,17 @@ +from pythonforandroid.recipe import PyProjectRecipe + + +class CppyRecipe(PyProjectRecipe): + site_packages_name = 'cppy' + version = '1.3.1' + url = 'https://github.com/nucleic/cppy/archive/refs/tags/{version}.zip' + call_hostpython_via_targetpython = False + depends = ['setuptools'] + + def get_recipe_env(self, arch, **kwargs): + env = super().get_recipe_env(arch, **kwargs) + env["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CPPY"] = self.version + return env + + +recipe = CppyRecipe() diff --git a/pythonforandroid/recipes/enaml/0001-Update-setup.py.patch b/pythonforandroid/recipes/enaml/0001-Update-setup.py.patch deleted file mode 100644 index c84f892dc6..0000000000 --- a/pythonforandroid/recipes/enaml/0001-Update-setup.py.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 156a0426f7350bf49bdfae1aad555e13c9494b9a Mon Sep 17 00:00:00 2001 -From: frmdstryr -Date: Thu, 23 Jun 2016 22:04:32 -0400 -Subject: [PATCH] Update setup.py - ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 3bfd2a2..99817e5 100644 ---- a/setup.py -+++ b/setup.py -@@ -72,7 +72,7 @@ setup( - url='https://github.com/nucleic/enaml', - description='Declarative DSL for building rich user interfaces in Python', - long_description=open('README.rst').read(), -- requires=['atom', 'PyQt', 'ply', 'kiwisolver'], -+ requires=['atom', 'ply', 'kiwisolver'], - install_requires=['distribute', 'atom >= 0.3.8', 'kiwisolver >= 0.1.2', 'ply >= 3.4'], - packages=find_packages(), - package_data={ --- -2.7.4 - diff --git a/pythonforandroid/recipes/enaml/__init__.py b/pythonforandroid/recipes/enaml/__init__.py index d2335206c8..bd1247add4 100644 --- a/pythonforandroid/recipes/enaml/__init__.py +++ b/pythonforandroid/recipes/enaml/__init__.py @@ -3,9 +3,8 @@ class EnamlRecipe(CppCompiledComponentsPythonRecipe): site_packages_name = 'enaml' - version = '0.9.8' - url = 'https://github.com/nucleic/enaml/archive/{version}.zip' - patches = ['0001-Update-setup.py.patch'] # Remove PyQt dependency + version = '0.18.0' + url = 'https://github.com/nucleic/enaml/archive/refs/tags/{version}.zip' depends = ['setuptools', 'atom', 'kiwisolver'] diff --git a/pythonforandroid/recipes/kiwisolver/__init__.py b/pythonforandroid/recipes/kiwisolver/__init__.py index d94af0f14b..e0b9be48d4 100644 --- a/pythonforandroid/recipes/kiwisolver/__init__.py +++ b/pythonforandroid/recipes/kiwisolver/__init__.py @@ -3,17 +3,17 @@ class KiwiSolverRecipe(PyProjectRecipe): site_packages_name = 'kiwisolver' - version = '1.4.5' + version = '1.4.8' url = 'git+https://github.com/nucleic/kiwi' - depends = ['cppy'] + hostpython_prerequisites = ['cppy'] need_stl_shared = True # from https://github.com/kivy/python-for-android/issues/3115 def get_recipe_env(self, arch, **kwargs): env = super().get_recipe_env(arch, **kwargs) flags = " -I" + self.ctx.python_recipe.include_root(arch.arch) - env["CFLAGS"] = flags - env["CPPFLAGS"] = flags + env["CFLAGS"] += flags + env["CPPFLAGS"] += flags return env