Skip to content

Commit 66a4ff5

Browse files
committed
Fixes #2031
1 parent 18adcdd commit 66a4ff5

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

conf/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ echo "======= FORMATTING CODE ========="
4646
ruff format
4747
echo "======= BUILDING PACKAGE ========="
4848
if [[ "${offline}" = "1" ]]; then
49+
cp "${ROOT_DIR}/conf/offline/setup.py" "${ROOT_DIR}/"
50+
cp "${ROOT_DIR}/conf/offline/sonar-tools" "${ROOT_DIR}/"
51+
mv "${ROOT_DIR}/pyproject.toml" "${ROOT_DIR}/pyproject.toml.bak"
4952
python setup.py bdist_wheel
53+
mv "${ROOT_DIR}/pyproject.toml.bak" "${ROOT_DIR}/pyproject.toml"
54+
rm "${ROOT_DIR}/setup.py" "${ROOT_DIR}/sonar-tools"
5055
# python -m build
5156
else
5257
rm -rf "${ROOT_DIR}/build/lib/sonar" "${ROOT_DIR}/build/lib/cli" "${ROOT_DIR}"/build/scripts*/sonar-tools "${ROOT_DIR}"/dist/sonar_tools*
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)