File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if [ ! -d dlpack ]; then
2727fi
2828
2929mkdir -p ${PREFIX}
30- cp -a dlpack/include ${PREFIX}
30+ cp -d -r --no-preserve=ownership dlpack/include ${PREFIX}
3131
3232# # TENSORFLOW
3333TF_VERSION=" 1.12.0"
@@ -50,7 +50,7 @@ if [ ! -e ${LIBTF_ARCHIVE} ]; then
5050 wget https://storage.googleapis.com/tensorflow/libtensorflow/${LIBTF_ARCHIVE}
5151fi
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
8787fi
8888
8989unzip -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}
9191rm -rf libtorch
9292
9393if [[ " ${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}
100100fi
101101
102102echo " Done"
You can’t perform that action at this time.
0 commit comments