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
27
27
fi
28
28
29
29
mkdir -p ${PREFIX}
30
- cp -a dlpack/include ${PREFIX}
30
+ cp -d -r --no-preserve=ownership dlpack/include ${PREFIX}
31
31
32
32
# # TENSORFLOW
33
33
TF_VERSION=" 1.12.0"
@@ -50,7 +50,7 @@ if [ ! -e ${LIBTF_ARCHIVE} ]; then
50
50
wget https://storage.googleapis.com/tensorflow/libtensorflow/${LIBTF_ARCHIVE}
51
51
fi
52
52
53
- tar xf ${LIBTF_ARCHIVE} --strip-components=1 -C ${PREFIX}
53
+ tar xf ${LIBTF_ARCHIVE} --no-same-owner -- strip-components=1 -C ${PREFIX}
54
54
55
55
# # PYTORCH
56
56
@@ -87,7 +87,7 @@ if [ ! -e "${LIBTORCH_ARCHIVE}" ]; then
87
87
fi
88
88
89
89
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}
91
91
rm -rf libtorch
92
92
93
93
if [[ " ${PT_OS} " == " macos" ]]; then
@@ -96,7 +96,7 @@ if [[ "${PT_OS}" == "macos" ]]; then
96
96
if [ ! -e " ${MKL_BUNDLE} .tgz" ]; then
97
97
wget " https://github.com/intel/mkl-dnn/releases/download/v0.17.1/${MKL_BUNDLE} .tgz"
98
98
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}
100
100
fi
101
101
102
102
echo " Done"
You can’t perform that action at this time.
0 commit comments