Signed-off-by: Turner Jabbour <doubleujabbour@gmail.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
6e4efafc6e
commit
e2cb5ee46c
@@ -117,8 +117,7 @@ echo "Building TorchCodec (MAX_JOBS=$MAX_JOBS)..."
|
||||
pip wheel . --no-build-isolation --no-deps -w "$BUILD_DIR/dist"
|
||||
|
||||
# Install the built wheel
|
||||
# shellcheck disable=SC2012 # `ls` sorting is relied on here; TODO: switch to `find` in a follow-up cleanup PR
|
||||
BUILT_WHEEL=$(ls "$BUILD_DIR/dist"/torchcodec-*.whl 2>/dev/null | head -1)
|
||||
BUILT_WHEEL=$(find "$BUILD_DIR/dist" -maxdepth 1 -name 'torchcodec-*.whl' -print -quit)
|
||||
if [ -z "$BUILT_WHEEL" ]; then
|
||||
echo "Error: No wheel produced"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user