Skip to content

Commit

Permalink
Chnage commands for building Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Dec 23, 2024
1 parent a3c6f44 commit 5bd83fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pipelines/templates/stages/build-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,35 @@ stages:
git submodule foreach git pull
git submodule foreach git tag ${TAG}
git submodule foreach git push origin ${TAG}
sudo env "PATH=$PATH" python -m pip install --no-cache-dir -U wheel cython pip
sudo env "PATH=$PATH" python -m pip install --no-cache-dir -U wheel cython pip build
# Build base
cd assemblyline-base
echo $VERSION > assemblyline/VERSION
python setup.py sdist --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -s -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
# Build core
cd ../assemblyline-core
echo $VERSION > assemblyline_core/VERSION
python setup.py sdist --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -s -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
# Build ui
cd ../assemblyline-ui
echo $VERSION > assemblyline_ui/VERSION
python setup.py bdist_wheel --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -w -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
# Build service server
cd ../assemblyline-service-server
echo $VERSION > assemblyline_service_server/VERSION
python setup.py bdist_wheel --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -w -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
cd ../assemblyline-service-client
echo $VERSION > assemblyline_service_client/VERSION
python setup.py bdist_wheel --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -w -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
cd ../assemblyline-v4-service
echo $VERSION > assemblyline_v4_service/VERSION
python setup.py bdist_wheel --dist-dir ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
python -m build -w -o ${SYSTEM_DEFAULTWORKINGDIRECTORY}/dist/ &
wait
cd ../
Expand Down

0 comments on commit 5bd83fb

Please sign in to comment.