File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,13 +269,14 @@ jobs:
269269
270270 - name : Install build dependencies
271271 run : |
272- pip install build wheel torch numpy
272+ pip install build wheel numpy
273+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch
273274
274275 - name : Build wheel
275276 env :
276277 DAWN_PREFIX : ${{ github.workspace }}/dawn-install
277278 run : |
278- pip wheel . --no-deps -w dist/
279+ pip wheel . --no-deps --no-build-isolation - w dist/
279280
280281 - name : Upload wheel
281282 uses : actions/upload-artifact@v4
@@ -310,7 +311,7 @@ jobs:
310311 env :
311312 DAWN_PREFIX : ${{ github.workspace }}/dawn-install
312313 run : |
313- pip wheel . --no-deps -w dist/
314+ pip wheel . --no-deps --no-build-isolation - w dist/
314315
315316 - name : Upload wheel
316317 uses : actions/upload-artifact@v4
@@ -348,7 +349,7 @@ jobs:
348349 env :
349350 DAWN_PREFIX : ${{ github.workspace }}/dawn-install
350351 run : |
351- pip wheel . --no-deps -w dist/
352+ pip wheel . --no-deps --no-build-isolation - w dist/
352353
353354 - name : Upload wheel
354355 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 55
66set -e
77
8- INSTALL_PREFIX=" ${1:- $PWD / dawn-install} "
9- DAWN_DIR=" ${DAWN_DIR:- $PWD / dawn} "
8+ ROOT_DIR=" $PWD "
9+ INSTALL_PREFIX=" ${1:- $ROOT_DIR / dawn-install} "
10+ DAWN_DIR=" ${DAWN_DIR:- $ROOT_DIR / dawn} "
11+
12+ # Normalize install prefix to an absolute path so relative args work after cd.
13+ if [[ " $INSTALL_PREFIX " != /* ]]; then
14+ INSTALL_PREFIX=" $ROOT_DIR /$INSTALL_PREFIX "
15+ fi
1016NUM_JOBS=" ${NUM_JOBS:- $(nproc 2>/ dev/ null || sysctl -n hw.ncpu 2>/ dev/ null || echo 4)} "
1117
1218echo " Building Dawn..."
You can’t perform that action at this time.
0 commit comments