Merge pull request #405 from inclement/fix_local_recipes
Added p4a.local_recipes to default.spec and handled its absence
This commit is contained in:
commit
0a8c644d74
2 changed files with 4 additions and 1 deletions
|
@ -101,6 +101,9 @@ fullscreen = 1
|
||||||
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
|
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
|
||||||
#android.p4a_dir =
|
#android.p4a_dir =
|
||||||
|
|
||||||
|
# (str) The directory in which python-for-android should look for your own build recipes (if any)
|
||||||
|
#p4a.local_recipes =
|
||||||
|
|
||||||
# (list) python-for-android whitelist
|
# (list) python-for-android whitelist
|
||||||
#android.p4a_whitelist =
|
#android.p4a_whitelist =
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TargetAndroidNew(TargetAndroid):
|
||||||
return join(self._build_dir, 'dists', dist_name)
|
return join(self._build_dir, 'dists', dist_name)
|
||||||
|
|
||||||
def get_local_recipes_dir(self):
|
def get_local_recipes_dir(self):
|
||||||
local_recipes = self.buildozer.config.get('app', 'p4a.local_recipes')
|
local_recipes = self.buildozer.config.getdefault('app', 'p4a.local_recipes')
|
||||||
return realpath(expanduser(local_recipes)) if local_recipes else None
|
return realpath(expanduser(local_recipes)) if local_recipes else None
|
||||||
|
|
||||||
def execute_build_package(self, build_cmd):
|
def execute_build_package(self, build_cmd):
|
||||||
|
|
Loading…
Reference in a new issue