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

kivy / python-for-android / 7239023125

17 Dec 2023 02:11PM UTC coverage: 59.041% (-0.05%) from 59.09%
7239023125

push

github

web-flow
Update sdl2 deps to reflect the same targeted in kivy/kivy (#2927)

* Update sdl2 deps to reflect the same targeted in kivy/kivy

* Update md5 sum

* Create new patch and set new include dir for sdl_image

* Set pygame as broken recipe

* sdl_image 2.8.0 has been released

941 of 2245 branches covered (0.0%)

Branch coverage included in aggregate %.

6 of 12 new or added lines in 6 files covered. (50.0%)

3 existing lines in 3 files now uncovered.

4734 of 7367 relevant lines covered (64.26%)

2.56 hits per line

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

56.52
/pythonforandroid/recipes/sdl2_image/__init__.py
1
import os
4✔
2
import sh
4✔
3
from pythonforandroid.logger import shprint
4✔
4
from pythonforandroid.recipe import BootstrapNDKRecipe
4✔
5
from pythonforandroid.util import current_directory
4✔
6

7

8
class LibSDL2Image(BootstrapNDKRecipe):
4✔
9
    version = '2.8.0'
4✔
10
    url = 'https://github.com/libsdl-org/SDL_image/releases/download/release-{version}/SDL2_image-{version}.tar.gz'
4✔
11
    dir_name = 'SDL2_image'
4✔
12

13
    patches = ['enable-webp.patch']
4✔
14

15
    def get_include_dirs(self, arch):
4✔
NEW
16
        return [
×
17
            os.path.join(self.ctx.bootstrap.build_dir, "jni", "SDL2_image", "include")
18
        ]
19

20
    def prebuild_arch(self, arch):
4✔
21
        # We do not have a folder for each arch on BootstrapNDKRecipe, so we
22
        # need to skip the external deps download if we already have done it.
23
        external_deps_dir = os.path.join(self.get_build_dir(arch.arch), "external")
×
24
        if not os.path.exists(os.path.join(external_deps_dir, "libwebp")):
×
25
            with current_directory(external_deps_dir):
×
26
                shprint(sh.Command("./download.sh"))
×
27
        super().prebuild_arch(arch)
×
28

29

30
recipe = LibSDL2Image()
4✔
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