We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbd4e04 commit 69fb188Copy full SHA for 69fb188
pythonforandroid/recipes/python3/__init__.py
@@ -367,7 +367,10 @@ def build_arch(self, arch):
367
_env=env
368
)
369
# rename executable
370
- sh.cp('python', 'libpythonbin.so')
+ if isfile("python"):
371
+ sh.cp('python', 'libpythonbin.so')
372
+ elif isfile("python.exe"): # for macos
373
+ sh.cp('python.exe', 'libpythonbin.so')
374
375
# TODO: Look into passing the path to pyconfig.h in a
376
# better way, although this is probably acceptable
0 commit comments