Skip to content

Commit 8a87f65

Browse files
committed
Improvements build script
1 parent 66e3ff0 commit 8a87f65

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ echo "Building dynamic c library from Swift code..."
66
swift package clean
77
swift build --configuration release
88

9-
# Copy the dlib that got created and paste it into the python_api folder
10-
# Assuming the .dylib or .so file is located in the .build/release/ directory
11-
cp .build/release/libLoopAlgorithmToPython.dylib ./python_api/
12-
13-
echo "Library successfully copied to the python_api folder!"
9+
# Copy the library
10+
if cp .build/release/libLoopAlgorithmToPython.dylib ./python_api/; then
11+
echo "Library successfully copied to the python_api folder!"
12+
else
13+
echo "Failed to copy the library to the python_api folder."
14+
fi

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
pytest

0 commit comments

Comments
 (0)