• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kivy / python-for-android / 18498863279

14 Oct 2025 01:52PM UTC coverage: 59.205% (+0.2%) from 59.033%
18498863279

push

github

web-flow
`matplotlib`: fix build (#3230)

Thanks a lot!

1071 of 2409 branches covered (44.46%)

Branch coverage included in aggregate %.

9 of 14 new or added lines in 1 file covered. (64.29%)

2 existing lines in 1 file now uncovered.

5020 of 7879 relevant lines covered (63.71%)

5.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.18
/pythonforandroid/recipes/matplotlib/__init__.py
1
from pythonforandroid.recipe import MesonRecipe
8✔
2
from pythonforandroid.logger import shprint
8✔
3

4
from os.path import join
8✔
5
import sh
8✔
6

7

8
class MatplotlibRecipe(MesonRecipe):
8✔
9
    version = '3.10.7'
8✔
10
    url = 'https://github.com/matplotlib/matplotlib/archive/v{version}.zip'
8✔
11
    depends = ['kiwisolver', 'numpy', 'pillow']
8✔
12
    python_depends = ['cycler', 'fonttools', 'packaging', 'pyparsing', 'python-dateutil']
8✔
13
    hostpython_prerequisites = ["setuptools_scm>=7"]
8✔
14
    patches = ["meson.patch"]
8✔
15
    need_stl_shared = True
8✔
16

17
    def get_recipe_env(self, arch, **kwargs):
8✔
UNCOV
18
        env = super().get_recipe_env(arch, **kwargs)
×
NEW
19
        env['CXXFLAGS'] += ' -Wno-c++11-narrowing'
×
UNCOV
20
        return env
×
21

22
    def build_arch(self, arch):
8✔
NEW
23
        python_path = join(self.ctx.python_recipe.get_build_dir(arch), "android-build", "python3")
×
NEW
24
        self.extra_build_args += [f'-Csetup-args=-Dpython3_program={python_path}']
×
NEW
25
        shprint(sh.cp, self.real_hostpython_location, python_path)
×
NEW
26
        super().build_arch(arch)
×
27

28

29
recipe = MatplotlibRecipe()
8✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc