Skip to content

Commit e2b9cfe

Browse files
committed
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
1 parent 60c624f commit e2b9cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def run_pymodules_install(ctx, modules, project_dir=None,
764764
shprint(host_python, '-m', 'venv', 'venv')
765765

766766
# Prepare base environment and upgrade pip:
767-
base_env = copy.copy(os.environ)
767+
base_env = dict(copy.copy(os.environ))
768768
base_env["PYTHONPATH"] = ctx.get_site_packages_dir()
769769
info('Upgrade pip to latest version')
770770
shprint(sh.bash, '-c', (

0 commit comments

Comments
 (0)