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

kivy / python-for-android / 14999495895

13 May 2025 02:38PM UTC coverage: 58.724% (-0.5%) from 59.204%
14999495895

Pull #3136

github

web-flow
Merge 55a9af12f into 40993e323
Pull Request #3136: scipy: update to v1.15.2

1059 of 2408 branches covered (43.98%)

Branch coverage included in aggregate %.

73 of 221 new or added lines in 9 files covered. (33.03%)

4 existing lines in 3 files now uncovered.

4979 of 7874 relevant lines covered (63.23%)

2.52 hits per line

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

53.85
/pythonforandroid/recipes/libopenblas/__init__.py
1
from pythonforandroid.recipe import Recipe
4✔
2
from pythonforandroid.logger import shprint
4✔
3
from pythonforandroid.util import current_directory, ensure_dir
4✔
4
from multiprocessing import cpu_count
4✔
5
from os.path import join
4✔
6
import sh
4✔
7
from pythonforandroid.util import rmdir
4✔
8

9

10
class LibOpenBlasRecipe(Recipe):
4✔
11

12
    version = "0.3.29"
4✔
13
    url = "https://github.com/OpenMathLib/OpenBLAS/archive/refs/tags/v{version}.tar.gz"
4✔
14
    built_libraries = {"libopenblas.so": "build/lib"}
4✔
15
    min_ndk_api_support = 24  # complex math functions support
4✔
16

17
    def build_arch(self, arch):
4✔
NEW
18
        source_dir = self.get_build_dir(arch.arch)
×
NEW
19
        build_target = join(source_dir, "build")
×
20

NEW
21
        ensure_dir(build_target)
×
NEW
22
        with current_directory(build_target):
×
NEW
23
            env = self.get_recipe_env(arch)
×
NEW
24
            rmdir("CMakeFiles")
×
NEW
25
            shprint(sh.rm, "-f", "CMakeCache.txt", _env=env)
×
26

NEW
27
            opts = [
×
28
                # default cmake options
29
                "-DCMAKE_SYSTEM_NAME=Android",
30
                "-DCMAKE_ANDROID_ARCH_ABI={arch}".format(arch=arch.arch),
31
                "-DCMAKE_ANDROID_NDK=" + self.ctx.ndk_dir,
32
                "-DCMAKE_ANDROID_API={api}".format(api=self.ctx.ndk_api),
33
                "-DCMAKE_BUILD_TYPE=Release",
34
                "-DBUILD_SHARED_LIBS=ON",
35
                "-DC_LAPACK=ON",
36
                "-DTARGET={target}".format(
37
                    target={
38
                        "arm64-v8a": "ARMV8",
39
                        "armeabi-v7a": "ARMV7",
40
                        "x86_64": "CORE2",
41
                        "x86": "CORE2",
42
                    }[arch.arch]
43
                ),
44
            ]
45

NEW
46
            shprint(sh.cmake, source_dir, *opts, _env=env)
×
NEW
47
            shprint(sh.make, "-j" + str(cpu_count()), _env=env)
×
48

49

50
recipe = LibOpenBlasRecipe()
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