From 6f583ccb29a9c7a13de3416eefdfd13e800d40cc Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Fri, 11 Nov 2022 12:00:56 +0800 Subject: [PATCH] tools: idf extra wheels url can be set by environment variables --- tools/idf_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/idf_tools.py b/tools/idf_tools.py index 58bc7bd9f8..90b62ce6af 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -93,6 +93,7 @@ URL_PREFIX_MAP_SEPARATOR = ',' IDF_TOOLS_INSTALL_CMD = os.environ.get('IDF_TOOLS_INSTALL_CMD') IDF_TOOLS_EXPORT_CMD = os.environ.get('IDF_TOOLS_INSTALL_CMD') IDF_DL_URL = 'https://dl.espressif.com/dl/esp-idf' +IDF_PIP_WHEELS_URL = os.environ.get('IDF_PIP_WHEELS_URL', 'https://dl.espressif.com/pypi') PYTHON_PLATFORM = platform.system() + '-' + platform.machine() @@ -2431,7 +2432,7 @@ def main(argv): # type: (list[str]) -> None action='store_true') install_python_env.add_argument('--extra-wheels-dir', help='Additional directories with wheels ' + 'to use during installation') - install_python_env.add_argument('--extra-wheels-url', help='Additional URL with wheels', default='https://dl.espressif.com/pypi') + install_python_env.add_argument('--extra-wheels-url', help='Additional URL with wheels', default=IDF_PIP_WHEELS_URL) install_python_env.add_argument('--no-index', help='Work offline without retrieving wheels index') install_python_env.add_argument('--features', default='core', help='A comma separated list of desired features for installing.' ' It defaults to installing just the core funtionality.')