Skip to content

Commit

Permalink
fix upload wheel job
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Apr 12, 2024
1 parent cc03348 commit 806c68a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build_and_upload_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
- name: Build
shell: bash
run: |
python3 scripts/ci/build_and_upload_wheels.py \
pixi run python scripts/ci/build_and_upload_wheels.py \
--mode ${{ inputs.MODE }} \
--target ${{ needs.set-config.outputs.TARGET }} \
--dir commit/${{ steps.get-sha.outputs.sha }}/wheels \
Expand Down
8 changes: 0 additions & 8 deletions scripts/ci/build_and_upload_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ def detect_target() -> str:
return f"{arch}-{os}"


def detect_pixi() -> bool:
path = os.environ.get("PATH")
return path is not None and ".pixi/env/bin" in path


class BuildMode(Enum):
PYPI = "pypi"
PR = "pr"
Expand All @@ -68,9 +63,6 @@ def __str__(self) -> str:


def build_and_upload(bucket: Bucket, mode: BuildMode, gcs_dir: str, target: str, compatibility: str) -> None:
if detect_pixi():
raise Exception("the build script cannot be started in the pixi environment")

if mode is BuildMode.PYPI:
# Only build web viewer when publishing to pypi
run("pixi run cargo run --locked -p re_build_web_viewer -- --release -g")
Expand Down

0 comments on commit 806c68a

Please sign in to comment.