Skip to content

Commit 300c890

Browse files
committed
Fix error when copying the generated library libpythonX.so
Because since the introduction of the ability to compile our python installation files, the copy command fails (because of the relative path and the fact that the compile command, recently introduced, probably changes the environment path, so when we try to copy the library the target directory is not found)
1 parent 51f4b91 commit 300c890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def create_python_bundle(self, dirn, arch):
335335
if self.major_minor_version_string[0] == '3':
336336
python_lib_name += 'm'
337337
shprint(sh.cp, join(python_build_dir, python_lib_name + '.so'),
338-
'libs/{}'.format(arch.arch))
338+
join(self.ctx.dist_dir, self.ctx.dist_name, 'libs', arch.arch))
339339

340340
info('Renaming .so files to reflect cross-compile')
341341
self.reduce_object_file_names(join(dirn, 'site-packages'))

0 commit comments

Comments
 (0)