From e2b9cfe17d17607d876b7664cc0026dcd5e69f2e Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Tue, 28 Apr 2020 23:43:16 +0200 Subject: [PATCH] Fixes sh `_env` should be a dictionary It looks like the `_env` keyword argument is acception dictionary only. The error was: ``` TypeError: Invalid special arguments: 'env': env must be a dict. Got environ(...) ``` https://travis-ci.org/github/AndreMiras/python-for-android/jobs/680502683 --- pythonforandroid/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py index d12181b698..34de065854 100644 --- a/pythonforandroid/build.py +++ b/pythonforandroid/build.py @@ -764,7 +764,7 @@ def run_pymodules_install(ctx, modules, project_dir=None, shprint(host_python, '-m', 'venv', 'venv') # Prepare base environment and upgrade pip: - base_env = copy.copy(os.environ) + base_env = dict(copy.copy(os.environ)) base_env["PYTHONPATH"] = ctx.get_site_packages_dir() info('Upgrade pip to latest version') shprint(sh.bash, '-c', (