Skip to content

Commit 3fee46e

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 b601a89 commit 3fee46e

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
@@ -344,7 +344,7 @@ def create_python_bundle(self, dirn, arch):
344344
if self.major_minor_version_string[0] == '3':
345345
python_lib_name += 'm'
346346
shprint(sh.cp, join(python_build_dir, python_lib_name + '.so'),
347-
'libs/{}'.format(arch.arch))
347+
join(self.ctx.dist_dir, self.ctx.dist_name, 'libs', arch.arch))
348348

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

0 commit comments

Comments
 (0)