From 8dc725a69780a80fdae5dfcd9a435fd012c9055b Mon Sep 17 00:00:00 2001 From: louistiti Date: Mon, 24 Jun 2024 08:28:32 +0800 Subject: [PATCH] refactor(scripts): differentiate PyTorch info log on macOS --- scripts/setup/setup-python-dev-env.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/setup/setup-python-dev-env.js b/scripts/setup/setup-python-dev-env.js index b54c99b2..415c9036 100644 --- a/scripts/setup/setup-python-dev-env.js +++ b/scripts/setup/setup-python-dev-env.js @@ -147,7 +147,12 @@ SPACY_MODELS.set('fr', { * @see https://docs.nvidia.com/deeplearning/cudnn/latest/reference/support-matrix.html */ const installPytorch = async () => { - LogHelper.info('Installing PyTorch with CUDA support...') + const logInfo = + osType === OSTypes.MacOS + ? 'Installing PyTorch...' + : 'Installing PyTorch with CUDA support...' + LogHelper.info(logInfo) + try { // There is no CUDA support on macOS const commandToExecute =