Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/_build_test_publish_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ on:
description: Options to pass to the container
type: string
default: " "
extra-no-build-isolation-packages:
required: false
description: Space-separated list of extra packages to pre-install before building with --no-build-isolation (e.g. "grpcio-tools protobuf")
type: string
default: ""
secrets:
TWINE_USERNAME:
required: true
Expand Down Expand Up @@ -121,6 +126,7 @@ jobs:
DRY_RUN: ${{ inputs.dry-run }}
PACKAGING: ${{ inputs.packaging }}
ROOTDIR: ${{ inputs.root-dir }}
EXTRA_NO_BUILD_ISOLATION_PACKAGES: ${{ inputs.extra-no-build-isolation-packages }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -179,12 +185,18 @@ jobs:
if [[ "$NO_BUILD_ISOLATION" == "true" ]]; then
uv pip install torch
uv pip install --upgrade setuptools pybind11 wheel_stub packaging poetry poetry-dynamic-versioning
if [[ -n "$EXTRA_NO_BUILD_ISOLATION_PACKAGES" ]]; then
uv pip install $EXTRA_NO_BUILD_ISOLATION_PACKAGES
fi
fi
uv pip install $([[ "$NO_BUILD_ISOLATION" == "true" ]] && echo "--no-build-isolation" || "") -e .
else
if [[ "$NO_BUILD_ISOLATION" == "true" ]]; then
pip install torch
pip install --upgrade setuptools pybind11 wheel_stub packaging poetry poetry-dynamic-versioning
if [[ -n "$EXTRA_NO_BUILD_ISOLATION_PACKAGES" ]]; then
pip install $EXTRA_NO_BUILD_ISOLATION_PACKAGES
fi
fi
pip install -e $([[ "$NO_BUILD_ISOLATION" == "true" ]] && echo "--no-build-isolation" || "") .
fi
Expand Down
Loading