Skip to content

Commit 23fed5f

Browse files
committed
Make script less verbose
1 parent dff60f7 commit 23fed5f

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

python/tools/prepare_build_environment_windows.sh

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ curl -L -o vs_buildtools.exe "https://aka.ms/vs/16/release/vs_buildtools.exe"
4141

4242
# Verify installation
4343
if [ -f "/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" ]; then
44-
echo "MSVC 14.29.30133 installed successfully!"
45-
# Display compiler version
46-
"/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" 2>&1 | head -1
44+
echo "MSVC 14.29.30133 installed successfully!"
4745
else
48-
echo "Installation verification failed. Checking available versions..."
49-
ls -la "/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/" || echo "MSVC directory not found"
46+
echo "Installation verification failed. Checking available versions..."
5047
exit 1
5148
fi
5249

@@ -74,18 +71,10 @@ rm -r build
7471

7572
cp README.md python/
7673
cp $CTRANSLATE2_ROOT/bin/ctranslate2.dll python/ctranslate2/
77-
78-
# Find the libiomp5md.dll file
74+
7975
LIBIOMP5_PATH=$(find "C:/Program Files (x86)/Intel/oneAPI" -name "libiomp5md.dll" -type f 2>/dev/null | head -1)
80-
81-
# Check if file was found
8276
if [ -z "$LIBIOMP5_PATH" ]; then
83-
echo "Error: libiomp5md.dll not found in Intel oneAPI installation."
84-
echo "Please ensure Intel oneAPI HPC Toolkit (with compiler) is installed."
85-
echo ""
86-
echo "Alternative locations to check manually:"
87-
echo "- C:/Program Files/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
88-
echo "- C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler/"
77+
echo "Error: libiomp5md.dll not found in Intel oneAPI installation."
8978
exit 1
9079
fi
9180
echo "Found libiomp5md.dll at: $LIBIOMP5_PATH"

0 commit comments

Comments
 (0)