Skip to content

Commit 5db0cdf

Browse files
committed
log information about skipping prerequisites checks
1 parent ceed049 commit 5db0cdf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pythonforandroid/checkdependencies.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from packaging.version import Version
66

7+
from pythonforandroid.logger import info
78
from pythonforandroid.prerequisites import (
89
check_and_install_default_prerequisites,
910
)
@@ -65,6 +66,10 @@ def check_python_dependencies():
6566

6667

6768
def check():
68-
if not environ.get("SKIP_PREREQUISITES_CHECK", "0") == "1":
69+
env_key = "SKIP_PREREQUISITES_CHECK"
70+
if not environ.get(env_key, "0") == "1":
71+
info(f"Starting prerequisites check. This can be skipped by setting env variable {env_key}=1")
6972
check_and_install_default_prerequisites()
73+
else:
74+
info(f"Prerequisites check was skipped because env variable {env_key} was set to 1. Remove from env or set to 0 to enable prerequisites checking.")
7075
check_python_dependencies()

0 commit comments

Comments
 (0)