Skip to content

Commit 066b35a

Browse files
committed
add python_depends to recipe
1 parent 5ed46a7 commit 066b35a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pythonforandroid/graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def get_recipe_order_and_bootstrap(ctx, names, bs=None):
163163
warning(
164164
'Due to this conflict the build cannot continue, exiting.')
165165
exit(1)
166+
python_modules += recipe.python_depends
166167
recipe_loaded.append(name)
167168
graph.remove_remaining_conflicts(ctx)
168169
if len(graph.graphs) > 1:

pythonforandroid/recipe.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ class Recipe(object):
8080
string patch file and a callable, which will receive the kwargs `arch` and
8181
`recipe`, which should return True if the patch should be applied.'''
8282

83+
python_depends = []
84+
'''A list of pure-Python packages that this package requires. These
85+
packages will NOT be available at build time, but will be added to the
86+
list of pure-Python packages to install via pip. If you need these packages
87+
at build time, you must create a recipe.'''
88+
8389
archs = ['armeabi'] # Not currently implemented properly
8490

8591
@property

0 commit comments

Comments
 (0)