diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py index d88fdb1f..25b4bba2 100644 --- a/pythonforandroid/build.py +++ b/pythonforandroid/build.py @@ -790,7 +790,10 @@ def process_python_modules(ctx, modules, arch): pure_python = True if ( - filename.endswith(".whl") and not is_wheel_compatible(filename, arch, ctx) + filename.endswith(".whl") and ( + "android" in filename + or not is_wheel_compatible(filename, arch, ctx) + ) ): any_not_pure_python = True pure_python = False @@ -873,10 +876,7 @@ def run_pymodules_install(ctx, arch, modules, project_dir=None, # Prepare base environment and upgrade pip: base_env = dict(copy.copy(os.environ)) base_env["PYTHONPATH"] = ctx.get_site_packages_dir(arch) - info('Upgrade pip to latest version') - shprint(sh.bash, '-c', ( - "source venv/bin/activate && pip install -U pip" - ), _env=copy.copy(base_env)) + info('Using the pip bundled with hostpython (no self-upgrade)') # Install Cython in case modules need it to build: info('Install Cython in case one of the modules needs it to build')