Skip to content

Commit c4613bf

Browse files
rafielantiga
authored andcommitted
Play nice with filesystems without owner samantics (e.g. nfs w/root_squash) (#103)
1 parent 6a1d3d0 commit c4613bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

get_deps.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ ! -d dlpack ]; then
2727
fi
2828

2929
mkdir -p ${PREFIX}
30-
cp -a dlpack/include ${PREFIX}
30+
cp -d -r --no-preserve=ownership dlpack/include ${PREFIX}
3131

3232
## TENSORFLOW
3333
TF_VERSION="1.12.0"
@@ -50,7 +50,7 @@ if [ ! -e ${LIBTF_ARCHIVE} ]; then
5050
wget https://storage.googleapis.com/tensorflow/libtensorflow/${LIBTF_ARCHIVE}
5151
fi
5252

53-
tar xf ${LIBTF_ARCHIVE} --strip-components=1 -C ${PREFIX}
53+
tar xf ${LIBTF_ARCHIVE} --no-same-owner --strip-components=1 -C ${PREFIX}
5454

5555
## PYTORCH
5656

@@ -87,7 +87,7 @@ if [ ! -e "${LIBTORCH_ARCHIVE}" ]; then
8787
fi
8888

8989
unzip -o ${LIBTORCH_ARCHIVE}
90-
tar cf - libtorch | tar xf - --strip-components=1 -C ${PREFIX}
90+
tar cf - libtorch | tar xf - --no-same-owner --strip-components=1 -C ${PREFIX}
9191
rm -rf libtorch
9292

9393
if [[ "${PT_OS}" == "macos" ]]; then
@@ -96,7 +96,7 @@ if [[ "${PT_OS}" == "macos" ]]; then
9696
if [ ! -e "${MKL_BUNDLE}.tgz" ]; then
9797
wget "https://github.com/intel/mkl-dnn/releases/download/v0.17.1/${MKL_BUNDLE}.tgz"
9898
fi
99-
tar xf ${MKL_BUNDLE}.tgz --strip-components=1 -C ${PREFIX}
99+
tar xf ${MKL_BUNDLE}.tgz --no-same-owner --strip-components=1 -C ${PREFIX}
100100
fi
101101

102102
echo "Done"

0 commit comments

Comments
 (0)