File tree 1 file changed +7
-0
lines changed 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ for whl_file in "$@"; do
29
29
)
30
30
version_with_suffix=$( grep ' ^Version:' " ${whl_dir} " /* /METADATA | cut -d' ' -f2)
31
31
version_with_suffix_escaped=${version_with_suffix/ +/% 2B}
32
+
32
33
# Remove all suffixed +bleh versions
33
34
version_no_suffix=${version_with_suffix/ +*/ }
34
35
new_whl_file=${OUTPUT_DIR} /$( basename " ${whl_file/ ${version_with_suffix_escaped} / ${version_no_suffix} } " )
@@ -37,6 +38,12 @@ for whl_file in "$@"; do
37
38
dirname_dist_info_folder=$( dirname " ${dist_info_folder} " )
38
39
(
39
40
set -x
41
+
42
+ # Special build with pypi cudnn remove it from version
43
+ if [[ $whl_file == * " with.pypi.cudnn" * ]]; then
44
+ sed -i -e " s/-with-pypi-cudnn//g" " ${whl_dir} /torch/version.py"
45
+ fi
46
+
40
47
find " ${dist_info_folder} " -type f -exec sed -i " s!${version_with_suffix} !${version_no_suffix} !" {} \;
41
48
# Moves distinfo from one with a version suffix to one without
42
49
# Example: torch-1.8.0+cpu.dist-info => torch-1.8.0.dist-info
You can’t perform that action at this time.
0 commit comments