Skip to content

Commit 5844ca7

Browse files
committed
Specify pip target dir correctly
1 parent 9c2b424 commit 5844ca7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ def install_python_package(self, arch, name=None, env=None, is_dir=True):
10221022
with current_directory(self.get_build_dir(arch.arch)):
10231023
shprint(hostpython, '-m', 'pip', 'install', '.',
10241024
'--compile',
1025+
f'--target={self.ctx.get_python_install_dir(arch.arch)}',
10251026
_env=hpenv, *self.setup_extra_args
10261027
)
10271028

@@ -1042,6 +1043,7 @@ def install_hostpython_package(self, arch):
10421043
real_hostpython = sh.Command(self.real_hostpython_location)
10431044
shprint(real_hostpython, '-m', 'pip', 'install', '.',
10441045
'--compile',
1046+
f'--target={self.ctx.get_python_install_dir(arch.arch)}',
10451047
'--install-lib=Lib/site-packages',
10461048
_env=env, *self.setup_extra_args)
10471049

0 commit comments

Comments
 (0)