@@ -1115,10 +1115,10 @@ def _get_installed_pip_packages(python_exe_path):
1115
1115
# https://github.com/platformio/platform-espressif32/issues/635
1116
1116
"cryptography" : "~=41.0.1" if IDF5 else ">=2.1.4,<35.0.0" ,
1117
1117
"future" : ">=0.18.3" ,
1118
- "pyparsing" : "~ =3.0.9 " if IDF5 else ">=2.0.3,<2.4.0" ,
1118
+ "pyparsing" : "> =3.1.0,<4 " if IDF5 else ">=2.0.3,<2.4.0" ,
1119
1119
"kconfiglib" : "~=14.1.0" if IDF5 else "~=13.7.1" ,
1120
1120
"idf-component-manager" : "~=1.5.2" if IDF5 else "~=1.0" ,
1121
- "esp-idf-kconfig" : "~ =1.2 .0"
1121
+ "esp-idf-kconfig" : "> =1.4.2,<2.0 .0"
1122
1122
}
1123
1123
1124
1124
if sys_platform .system () == "Darwin" and "arm" in sys_platform .machine ().lower ():
@@ -1165,6 +1165,7 @@ def _get_installed_pip_packages(python_exe_path):
1165
1165
)
1166
1166
)
1167
1167
1168
+
1168
1169
def get_idf_venv_dir ():
1169
1170
# The name of the IDF venv contains the IDF version to avoid possible conflicts and
1170
1171
# unnecessary reinstallation of Python dependencies in cases when Arduino
@@ -1175,6 +1176,7 @@ def get_idf_venv_dir():
1175
1176
env .subst ("$PROJECT_CORE_DIR" ), "penv" , ".espidf-" + idf_version
1176
1177
)
1177
1178
1179
+
1178
1180
def ensure_python_venv_available ():
1179
1181
1180
1182
def _is_venv_outdated (venv_data_file ):
@@ -1217,7 +1219,6 @@ def _create_venv(venv_dir):
1217
1219
pip_path
1218
1220
), "Error: Failed to create a proper virtual environment. Missing the `pip` binary!"
1219
1221
1220
-
1221
1222
venv_dir = get_idf_venv_dir ()
1222
1223
venv_data_file = os .path .join (venv_dir , "pio-idf-venv.json" )
1223
1224
if not os .path .isfile (venv_data_file ) or _is_venv_outdated (venv_data_file ):
0 commit comments