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

kivy / python-for-android / 18699442072

21 Oct 2025 10:26PM UTC coverage: 58.84% (+0.05%) from 58.795%
18699442072

Pull #3242

github

web-flow
Merge 78f76cb5d into 9720dbd54
Pull Request #3242: Use `pip install` instead of `setup.py install` when building recipes

1075 of 2436 branches covered (44.13%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

100 existing lines in 5 files now uncovered.

5042 of 7960 relevant lines covered (63.34%)

5.05 hits per line

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

48.0
/pythonforandroid/recipes/apsw/__init__.py
1
from pythonforandroid.recipe import PythonRecipe
8✔
2
from pythonforandroid.toolchain import current_directory, shprint
8✔
3
import sh
8✔
4

5

6
class ApswRecipe(PythonRecipe):
8✔
7
    version = '3.15.0-r1'
8✔
8
    url = 'https://github.com/rogerbinns/apsw/archive/{version}.tar.gz'
8✔
9
    depends = ['sqlite3', 'setuptools']
8✔
10
    call_hostpython_via_targetpython = False
8✔
11
    site_packages_name = 'apsw'
8✔
12

13
    def build_arch(self, arch):
8✔
14
        env = self.get_recipe_env(arch)
×
15
        with current_directory(self.get_build_dir(arch.arch)):
×
16
            # Build python bindings
UNCOV
17
            hostpython = sh.Command(self.hostpython_location)
×
UNCOV
18
            shprint(hostpython,
×
19
                    'setup.py',
20
                    'build_ext',
21
                    '--enable=fts4', _env=env)
22
        # Install python bindings
UNCOV
23
        super().build_arch(arch)
×
24

25
    def get_recipe_env(self, arch):
8✔
UNCOV
26
        env = super().get_recipe_env(arch)
×
UNCOV
27
        sqlite_recipe = self.get_recipe('sqlite3', self.ctx)
×
UNCOV
28
        env['CFLAGS'] += ' -I' + sqlite_recipe.get_build_dir(arch.arch)
×
UNCOV
29
        env['LDFLAGS'] += ' -L' + sqlite_recipe.get_lib_dir(arch)
×
UNCOV
30
        env['LIBS'] = env.get('LIBS', '') + ' -lsqlite3'
×
UNCOV
31
        return env
×
32

33

34
recipe = ApswRecipe()
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