Skip to content

Commit b943edc

Browse files
committed
Merge branch 'hotfix-matplotlib' into testing-testapps-rework
2 parents e473134 + 32e6ccb commit b943edc

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

ci/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class TargetPython(Enum):
5454
'websocket-client',
5555
'zeroconf',
5656
'zope',
57-
'matplotlib', # https://github.com/kivy/python-for-android/issues/1900
5857
])
5958
BROKEN_RECIPES_PYTHON3 = set([
6059
'brokenrecipe',

pythonforandroid/recipes/matplotlib/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@ def generate_libraries_pc_files(self, arch):
5454
# read template file into buffer
5555
with open(pc_template_file) as template_file:
5656
text_buffer = template_file.read()
57-
# set the library absolute path
57+
# set the library absolute path and library version
58+
lib_recipe = self.get_recipe(lib_name, self.ctx)
5859
text_buffer = text_buffer.replace(
59-
'path_to_built',
60-
self.get_recipe(lib_name, self.ctx).get_build_dir(arch.arch),
60+
'path_to_built', lib_recipe.get_build_dir(arch.arch),
6161
)
62+
text_buffer = text_buffer.replace(
63+
'library_version', lib_recipe.version,
64+
)
65+
6266
# write the library pc file into our defined dir `PKG_CONFIG_PATH`
6367
pc_dest_file = join(pkg_config_path, lib_to_pc_file[lib_name])
6468
with open(pc_dest_file, 'w') as pc_file:

pythonforandroid/recipes/matplotlib/libfreetype.pc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/objs/.libs
55

66
Name: freetype2
77
Description: The freetype2 library
8-
Version: 2.5.5
8+
Version: library_version
99
Cflags: -I${includedir}
1010
Libs: -L${libdir} -lfreetype

pythonforandroid/recipes/matplotlib/libpng.pc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/.libs
55

66
Name: libpng
77
Description: The png library
8-
Version: 1.6.37
8+
Version: library_version
99
Cflags: -I${includedir}
1010
Libs: -L${libdir} -lpng16

pythonforandroid/recipes/png/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
class PngRecipe(Recipe):
99
name = 'png'
10-
version = 'v1.6.37'
11-
url = 'https://github.com/glennrp/libpng/archive/{version}.zip'
10+
version = '1.6.37'
11+
url = 'https://github.com/glennrp/libpng/archive/v{version}.zip'
1212
built_libraries = {'libpng16.so': '.libs'}
1313

1414
def build_arch(self, arch):

0 commit comments

Comments
 (0)