Skip to content

Commit 69fb188

Browse files
committed
macos fix
1 parent dbd4e04 commit 69fb188

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/recipes/python3/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ def build_arch(self, arch):
367367
_env=env
368368
)
369369
# rename executable
370-
sh.cp('python', 'libpythonbin.so')
370+
if isfile("python"):
371+
sh.cp('python', 'libpythonbin.so')
372+
elif isfile("python.exe"): # for macos
373+
sh.cp('python.exe', 'libpythonbin.so')
371374

372375
# TODO: Look into passing the path to pyconfig.h in a
373376
# better way, although this is probably acceptable

0 commit comments

Comments
 (0)