Skip to content

Commit 34586b1

Browse files
committed
Fix TOSA serialization install in Linux unittest
1 parent 6edd49d commit 34586b1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.ci/scripts/unittest-linux-cmake.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ if ! python -c "import tosa_serializer" >/dev/null 2>&1; then
2020
fi
2121

2222
# NOTE: Will be removed when tosa-tools is installed via pypi
23+
if grep -q "^cmake\\.verbose = true$" "${TOSA_SERIALIZATION_DIR}/pyproject.toml"; then
24+
sed -i "s/^cmake\\.verbose = true$/build.verbose = true/" \
25+
"${TOSA_SERIALIZATION_DIR}/pyproject.toml"
26+
fi
27+
if grep -q "^dynamic = \\[\"version\"\\]$" "${TOSA_SERIALIZATION_DIR}/pyproject.toml"; then
28+
sed -i "s/^dynamic = \\[\"version\"\\]$/version = \"0.0.0\"/" \
29+
"${TOSA_SERIALIZATION_DIR}/pyproject.toml"
30+
fi
2331
python -m pip install pybind11==2.10.4
2432
CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 \
2533
python -m pip install --no-dependencies \

0 commit comments

Comments
 (0)