File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
pythonforandroid/bootstraps/sdl2/build Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -530,13 +530,14 @@ def parse_args(args=None):
530
530
if args .try_system_python_compile :
531
531
# Hardcoding python2.7 is okay for now, as python3 skips the
532
532
# compilation anyway
533
- python_executable = 'python2.7'
534
- try :
535
- subprocess .call ([python_executable , '--version' ])
536
- except (OSError , subprocess .CalledProcessError ):
537
- pass
538
- else :
539
- PYTHON = python_executable
533
+ if not exists ('crystax_python' ):
534
+ python_executable = 'python2.7'
535
+ try :
536
+ subprocess .call ([python_executable , '--version' ])
537
+ except (OSError , subprocess .CalledProcessError ):
538
+ pass
539
+ else :
540
+ PYTHON = python_executable
540
541
541
542
if args .no_compile_pyo :
542
543
PYTHON = None
You can’t perform that action at this time.
0 commit comments