Skip to content

Commit ba82d8a

Browse files
authored
Merge pull request kivy#1577 from JonasT/fixbuildpythoncall
Fix incorrect call assuming that OS python minor version matches hostpython
2 parents 5e37ca7 + f8200b1 commit ba82d8a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pythonforandroid/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,12 @@ def run_pymodules_install(ctx, modules):
669669
venv = sh.Command(ctx.virtualenv)
670670
with current_directory(join(ctx.build_dir)):
671671
shprint(venv,
672-
'--python=python{}'.format(ctx.python_recipe.major_minor_version_string),
673-
'venv')
672+
'--python=python{}'.format(
673+
ctx.python_recipe.major_minor_version_string.
674+
partition(".")[0]
675+
),
676+
'venv'
677+
)
674678

675679
info('Creating a requirements.txt file for the Python modules')
676680
with open('requirements.txt', 'w') as fileh:

0 commit comments

Comments
 (0)