10000 Fixed site_packages_dir for python3 · mixedCase/python-for-android@cde52f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit cde52f8

Browse files
committed
Fixed site_packages_dir for python3
1 parent 73b51ac commit cde52f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonforandroid/bootstraps/sdl2/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,16 @@ def run_distribute(self):
101101
shprint(sh.cp, '-r', self.ctx.get_python_install_dir(), 'crystax_python/crystax_python/site-packages')
102102

103103
info('Renaming .so files to reflect cross-compile')
104-
site_packages_dir = join(abspath(curdir),
105-
'crystax_python/crystax_python/site-packages')
104+
site_packages_dir = 'crystax_python/crystax_python/site-packages'
106105
filens = shprint(sh.find, site_packages_dir, '-iname', '*.so').stdout.decode(
107106
'utf-8').split('\n')[:-1]
108107
for filen in filens:
109108
parts = filen.split('.')
110109
if len(parts) <= 2:
111110
continue
112111
shprint(sh.mv, filen, filen.split('.')[0] + '.so')
112+
site_packages_dir = join(abspath(curdir),
113+
site_packages_dir)
113114

114115

115116
self.strip_libraries(arch)

0 commit comments

Comments
 (0)
0