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

kivy / python-for-android / 26681571906

30 May 2026 10:31AM UTC coverage: 62.67% (-1.2%) from 63.887%
26681571906

Pull #3278

github

web-flow
Merge 117fe4eef into 74b559a3c
Pull Request #3278: Handling system bars and Edge-to-Edge enforcement (android 15+)

1832 of 3194 branches covered (57.36%)

Branch coverage included in aggregate %.

5407 of 8357 relevant lines covered (64.7%)

3.88 hits per line

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

0.0
/pythonforandroid/recipes/scipy/wrapper.py
1
#!/usr/bin/python3
2

3
# Taken from https://github.com/termux/termux-packages/blob/master/packages/python-scipy/wrapper.py.in
4

5
import os
×
6
import subprocess
×
7
import sys
×
8

9
"""
×
10
This wrapper is used to ignore or replace some unsupported flags for flang-new.
11

12
It will operate as follows:
13

14
1. Ignore `-Minform=inform` and `-fdiagnostics-color`.
15
  They are added by meson automatically, but are not supported by flang-new yet.
16
2. Remove `-lflang` and `-lpgmath`.
17
  It exists in classic-flang but doesn't exist in flang-new.
18
3. Replace `-Oz` to `-O2`.
19
  `-Oz` is not supported by flang-new.
20
4. Replace `-module` to `-J`.
21
  See https://github.com/llvm/llvm-project/issues/66969
22
5. Ignore `-MD`, `-MQ file` and `-MF file`.
23
  They generates files used by GNU make but we're using ninja.
24
6. Ignore `-fvisibility=hidden`.
25
  It is not supported by flang-new, and ignoring it will not break the functionality,
26
  as scipy also uses version script for shared libraries.
27
"""
28

29
COMPLIER_PATH = "@COMPILER@"
×
30

31

32
def main(argv: list[str]):
×
33
    cwd = os.getcwd()
×
34
    argv_new = []
×
35
    i = 0
×
36
    while i < len(argv):
×
37
        arg = argv[i]
×
38
        if arg in [
×
39
            "-Minform=inform",
40
            "-lflang",
41
            "-lpgmath",
42
            "-MD",
43
            "-fvisibility=hidden",
44
        ] or arg.startswith("-fdiagnostics-color"):
45
            pass
×
46
        elif arg == "-Oz":
×
47
            argv_new.append("-O2")
×
48
        elif arg == "-module":
×
49
            argv_new.append("-J")
×
50
        elif arg in ["-MQ", "-MF"]:
×
51
            i += 1
×
52
        else:
53
            argv_new.append(arg)
×
54
        i += 1
×
55

56
    args = [COMPLIER_PATH] + argv_new
×
57
    subprocess.check_call(args, env=os.environ, cwd=cwd, text=True)
×
58

59

60
if __name__ == "__main__":
61
    main(sys.argv[1:])
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