Skip to content

Commit f273f01

Browse files
committed
Only use preserve-ownership on Linux
1 parent 1fbb4eb commit f273f01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

get_deps.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ if [ ! -d dlpack ]; then
2727
fi
2828

2929
mkdir -p ${PREFIX}
30-
cp -d -r --no-preserve=ownership dlpack/include ${PREFIX}
30+
if [[ "$OSTYPE" == "linux-gnu" ]]; then
31+
cp -d -r --no-preserve=ownership dlpack/include ${PREFIX}
32+
elif [[ "$OSTYPE" == "darwin"* ]]; then
33+
cp -r dlpack/include ${PREFIX}
34+
fi
3135

3236
## TENSORFLOW
3337
TF_VERSION="1.12.0"

0 commit comments

Comments
 (0)