diff --git a/manywheel/build_common.sh b/manywheel/build_common.sh index c213145ef..f11f83221 100644 --- a/manywheel/build_common.sh +++ b/manywheel/build_common.sh @@ -387,10 +387,10 @@ for pkg in /$WHEELHOUSE_DIR/torch*linux*.whl /$LIBTORCH_HOUSE_DIR/libtorch*.zip; record_file=$(echo $(basename $pkg) | sed -e 's/-cp.*$/.dist-info\/RECORD/g') if [[ -e $record_file ]]; then echo "Generating new record file $record_file" - rm -f $record_file + : > "$record_file" # generate records for folders in wheel find * -type f | while read fname; do - echo $(make_wheel_record $fname) >>$record_file + make_wheel_record "$fname" >>"$record_file" done fi diff --git a/release/pypi/prep_binary_for_pypi.sh b/release/pypi/prep_binary_for_pypi.sh old mode 100644 new mode 100755 index 90ac4cbf1..1eca37cac --- a/release/pypi/prep_binary_for_pypi.sh +++ b/release/pypi/prep_binary_for_pypi.sh @@ -88,10 +88,10 @@ for whl_file in "$@"; do record_file="${dirname_dist_info_folder}/${basename_dist_info_folder/${version_with_suffix}/${version_no_suffix}}/RECORD" if [[ -e $record_file ]]; then echo "Generating new record file $record_file" - rm -f $record_file + : > "$record_file" # generate records for folders in wheel find * -type f | while read fname; do - echo $(make_wheel_record $fname) >>$record_file + make_wheel_record "$fname" >>"$record_file" done fi )