Install cryptography only on linux platform
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
diff --git a/scripts/ci.requirements.txt b/scripts/ci.requirements.txt
index ac9c25a..3ddc417 100644
--- a/scripts/ci.requirements.txt
+++ b/scripts/ci.requirements.txt
@@ -14,4 +14,5 @@
# Install cryptography to avoid import-error reported by pylint.
# What we really need is cryptography >= 35.0.0, which is only
# available for Python >= 3.6.
-cryptography # >= 35.0.0
+cryptography >= 35.0.0; sys_platform == 'linux' and python_version >= '3.6'
+cryptography; sys_platform == 'linux' and python_version < '3.6'