File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,22 @@ else
178178 rm ${whl}
179179 done
180180fi
181+ itk_core_whl=$( ls dist/itk_core* whl | head -n 1)
182+ repaired_plat1=$( echo $itk_core_whl | cut -d- -f5 | cut -d. -f1)
183+ repaired_plat2=$( echo $itk_core_whl | cut -d- -f5 | cut -d. -f2)
181184for itk_wheel in dist/itk* -linux* .whl; do
182- mv ${itk_wheel} ${itk_wheel/ linux/ manylinux2014}
185+ mkdir -p unpacked_whl packed_whl
186+ /opt/python/cp39-cp39/bin/wheel unpack -d unpacked_whl ${itk_wheel}
187+ version=$( echo ${itk_wheel} | cut -d- -f3-4)
188+ echo " Wheel-Version: 1.0" > unpacked_whl/itk-* /* .dist-info/WHEEL
189+ echo " Generator: skbuild 0.8.1" >> unpacked_whl/itk-* /* .dist-info/WHEEL
190+ echo " Root-Is-Purelib: false" >> unpacked_whl/itk-* /* .dist-info/WHEEL
191+ echo " Tag: ${version} -${repaired_plat1} " >> unpacked_whl/itk-* /* .dist-info/WHEEL
192+ echo " Tag: ${version} -${repaired_plat2} " >> unpacked_whl/itk-* /* .dist-info/WHEEL
193+ echo " " >> unpacked_whl/itk-* /* .dist-info/WHEEL
194+ /opt/python/cp39-cp39/bin/wheel pack -d packed_whl ./unpacked_whl/itk-*
195+ mv packed_whl/* .whl dist/
196+ rm -rf unpacked_whl packed_whl ${itk_wheel}
183197done
184198
185199# Install packages and test
You can’t perform that action at this time.
0 commit comments