Skip to content

Commit 1e81b49

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 3d3fc1e commit 1e81b49

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
@@ -336,7 +336,7 @@ def create_python_bundle(self, dirn, arch):
336336
if self.major_minor_version_string[0] == '3':
337337
python_lib_name += 'm'
338338
shprint(sh.cp, join(python_build_dir, python_lib_name + '.so'),
339-
'libs/{}'.format(arch.arch))
339+
join(self.ctx.dist_dir, self.ctx.dist_name, 'libs', arch.arch))
340340

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

0 commit comments

Comments
 (0)