Skip to content

Commit 3933160

Browse files
authored
Update __init__.py
Add a warning that atom will not be built for 32 bit targets.
1 parent 85d9d23 commit 3933160

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pythonforandroid/recipes/atom/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,16 @@ class AtomRecipe(CppCompiledComponentsPythonRecipe):
88
hostpython_prerequisites = ['cppy']
99
depends = ['setuptools']
1010

11+
def build_arch(self, arch):
12+
if arch.arch in ["armeabi-v7a", "x86"]:
13+
warning("*******************************************")
14+
warning("******** atom recipe was not built ********")
15+
warning("* atom does not support 32 bit platforms **")
16+
warning("*** Expect the following run time error ***")
17+
warning("ModuleNotFoundError: No module named 'atom'")
18+
warning("*******************************************")
19+
else:
20+
super().build_arch(arch)
21+
1122

1223
recipe = AtomRecipe()

0 commit comments

Comments
 (0)