From 74ecc8bbdfa8da847d0a3122fda201f35bf0ce89 Mon Sep 17 00:00:00 2001 From: backlabs1 Date: Fri, 5 Apr 2024 22:55:26 +0000 Subject: [PATCH] Fix Qt dependency: install setuptools to venv In `CI/before_script.msvc.sh`, while executing the following line: run_cmd "aqt-venv/${VENV_BIN_DIR}/pip" install aqtinstall==1.1.3 This error is raised: ``` Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\TES3MP.git\deps\aqt-venv\Scripts\aqt.exe\__main__.py", line 4, in File "C:\TES3MP.git\deps\aqt-venv\Lib\site-packages\aqt\__init__.py", line 23, in from pkg_resources import DistributionNotFound, get_distribution ModuleNotFoundError: No module named 'pkg_resources' ``` This commit fixes that by first installing setuptools. --- CI/before_script.msvc.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CI/before_script.msvc.sh b/CI/before_script.msvc.sh index 1aec675f8..b0e4d231c 100644 --- a/CI/before_script.msvc.sh +++ b/CI/before_script.msvc.sh @@ -862,6 +862,8 @@ fi # check version aqt-venv/${VENV_BIN_DIR}/pip list | grep 'aqtinstall\s*1.1.3' || [ $? -ne 0 ] if [ $? -eq 0 ]; then + echo " Installing setuptools into virtualenv..." + run_cmd "aqt-venv/${VENV_BIN_DIR}/pip" install setuptools echo " Installing aqt wheel into virtualenv..." run_cmd "aqt-venv/${VENV_BIN_DIR}/pip" install aqtinstall==1.1.3 fi