Skip to content

Commit efa8b99

Browse files
committed
Merge branch 'master' of https://github.com/kivy/python-for-android into fix-python2-gethost
2 parents 9288ed5 + 21bc8b8 commit efa8b99

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

pythonforandroid/python.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,12 @@ def build_arch(self, arch):
231231
_env=env)
232232

233233
if not exists('python'):
234-
shprint(sh.make, 'all', _env=env)
234+
py_version = self.major_minor_version_string
235+
if self.major_minor_version_string[0] == '3':
236+
py_version += 'm'
237+
shprint(sh.make, 'all',
238+
'INSTSONAME=libpython{version}.so'.format(
239+
version=py_version), _env=env)
235240

236241
# TODO: Look into passing the path to pyconfig.h in a
237242
# better way, although this is probably acceptable
@@ -291,9 +296,8 @@ def create_python_bundle(self, dirn, arch):
291296
python_lib_name = 'libpython' + self.major_minor_version_string
292297
if self.major_minor_version_string[0] == '3':
293298
python_lib_name += 'm'
294-
for lib in [python_lib_name + '.so', python_lib_name + '.so.1.0']:
295-
shprint(sh.cp, join(python_build_dir, lib),
296-
'libs/{}'.format(arch.arch))
299+
shprint(sh.cp, join(python_build_dir, python_lib_name + '.so'),
300+
'libs/{}'.format(arch.arch))
297301

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

pythonforandroid/recipes/Pillow/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class PillowRecipe(CompiledComponentsPythonRecipe):
1010
url = 'https://github.com/python-pillow/Pillow/archive/{version}.tar.gz'
1111
site_packages_name = 'Pillow'
1212
depends = [
13-
('python2', 'python3crystax'),
1413
'png',
1514
'jpeg',
1615
'freetype',

pythonforandroid/recipes/lxml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class LXMLRecipe(CompiledComponentsPythonRecipe):
88
version = "3.6.0"
99
url = "https://pypi.python.org/packages/source/l/lxml/lxml-{version}.tar.gz"
10-
depends = [("python2", "python3crystax"), "libxml2", "libxslt"]
10+
depends = ["libxml2", "libxslt"]
1111
name = "lxml"
1212

1313
call_hostpython_via_targetpython = False # Due to setuptools

pythonforandroid/recipes/reportlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ReportLabRecipe(CompiledComponentsPythonRecipe):
99
version = 'c088826211ca'
1010
url = 'https://bitbucket.org/rptlab/reportlab/get/{version}.tar.gz'
11-
depends = [('python2', 'python3crystax'), 'freetype']
11+
depends = ['freetype']
1212

1313
def prebuild_arch(self, arch):
1414
if not self.is_patched(arch):

0 commit comments

Comments
 (0)