Skip to content

Commit 3035ca5

Browse files
committed
fix android recipe
1 parent 1bb30be commit 3035ca5

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

pythonforandroid/recipe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,8 @@ def patch_shebangs(self, path, original_bin):
966966
# set correct shebang
967967
for file in listdir(path):
968968
_file = join(path, file)
969-
self.patch_shebang(_file, original_bin)
969+
if isfile(_file):
970+
self.patch_shebang(_file, original_bin)
970971

971972
def get_recipe_env(self, arch=None, with_flags_in_cc=True):
972973
if self._host_recipe is None:
@@ -1384,7 +1385,7 @@ def build_arch(self, arch):
13841385
self.install_hostpython_prerequisites(
13851386
packages=["build[virtualenv]", "pip", "setuptools", "patchelf"] + self.hostpython_prerequisites
13861387
)
1387-
self.patch_shebangs(self._host_recipe.site_bin, self.real_hostpython_location)
1388+
self.patch_shebangs(self._host_recipe.local_bin, self.real_hostpython_location)
13881389

13891390
env = self.get_recipe_env(arch, with_flags_in_cc=True)
13901391
# make build dir separately
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"wheel",
5+
"Cython>=0.29,<3.1"
6+
]
7+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)