Skip to content

Commit

Permalink
Fix folder deletion for pypi prep
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored and seemethere committed Oct 27, 2022
1 parent 32862a4 commit 27e059c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/pypi/prep_binary_for_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for whl_file in "$@"; do
if [[ $whl_file == *"with.pypi.cudnn"* ]]; then
rm -rf "${whl_dir}/caffe2"
rm -rf "${whl_dir}"/torch/lib/libnvrtc*
find "${whl_dir}/torch/include/caffe2" -maxdepth 1 -type d|grep -v serialize|xargs rm -rf
find "${whl_dir}/torch/include/caffe2" -maxdepth 1 -mindepth 1 -type d|grep -v serialize|xargs rm -rf
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

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

0 comments on commit 27e059c

Please sign in to comment.