Skip to content

Commit

Permalink
fix: use uv instead of system python
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Sep 14, 2024
1 parent f943c31 commit 2afd0ef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
python3 -m pip install -r uv-version.txt
uv sync --frozen --no-install-project
export PYTHONPATH=$(pwd)
python3 scripts/run_tests.py
python3 scripts/multi_build.py
uv run scripts/run_tests.py
uv run scripts/multi_build.py
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ job-build:
- python3 -m pip install -r uv-version.txt --break-system-packages
- uv sync --frozen --no-install-project
- export PYTHONPATH=$(pwd)
- python3 scripts/run_tests.py
- python3 scripts/multi_build.py
- uv run scripts/run_tests.py
- uv run scripts/multi_build.py
artifacts:
paths:
- "multi-build/zero-*.zip"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN python3 -m pip install pip --upgrade && \
# This significantly reduces the total build time, as each time we make a build call for a device,
# only device-specific kernel source is being downloaded into the container.
#
RUN python3 ${WDIR}/builder/utils/bridge.py --shared
RUN uv run ${WDIR}/builder/utils/bridge.py --shared

# launch app
CMD [ "/bin/bash" ]
2 changes: 1 addition & 1 deletion builder/engines/generic_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def check_cache(self) -> bool:
@property
def builder_cmd(self) -> str:
# prepare launch command
cmd = f"python3 {Path('builder', 'utils', 'bridge.py')}"
cmd = f"uv run {Path('builder', 'utils', 'bridge.py')}"
arguments = {
"--command": self.command,
"--codename": self.codename,
Expand Down

0 comments on commit 2afd0ef

Please sign in to comment.