Skip to content

Commit 27e059c

Browse files
atalmanseemethere
authored andcommitted
Fix folder deletion for pypi prep
1 parent 32862a4 commit 27e059c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/pypi/prep_binary_for_pypi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ for whl_file in "$@"; do
5656
if [[ $whl_file == *"with.pypi.cudnn"* ]]; then
5757
rm -rf "${whl_dir}/caffe2"
5858
rm -rf "${whl_dir}"/torch/lib/libnvrtc*
59-
find "${whl_dir}/torch/include/caffe2" -maxdepth 1 -type d|grep -v serialize|xargs rm -rf
59+
find "${whl_dir}/torch/include/caffe2" -maxdepth 1 -mindepth 1 -type d|grep -v serialize|xargs rm -rf
6060
sed -i -e "/^Requires-Dist: nvidia-cublas-cu11 (==11.10.3.66).*/a Requires-Dist: nvidia-cuda-nvrtc-cu11 (==11.7.99)" "${whl_dir}"/*/METADATA
6161

6262
sed -i -e "s/-with-pypi-cudnn//g" "${whl_dir}/torch/version.py"

0 commit comments

Comments
 (0)