diff --git a/build-wheels-linux.sh b/build-wheels-linux.sh index edb6b82..9630f55 100755 --- a/build-wheels-linux.sh +++ b/build-wheels-linux.sh @@ -46,6 +46,9 @@ cp -v ../../../etc/openturns/openturns.conf openturns.libs # write metadata python ${SCRIPTPATH}/write_RECORD.py openturns ${VERSION} +sed -i "/Tag:/d" openturns-${VERSION}.dist-info/WHEEL +echo "Tag: ${TAG}" >> openturns-${VERSION}.dist-info/WHEEL +cat openturns-${VERSION}.dist-info/WHEEL # create archive zip -r openturns-${VERSION}-${TAG}.whl openturns openturns.libs openturns-${VERSION}.dist-info diff --git a/build-wheels-macos.sh b/build-wheels-macos.sh index 4c77fc3..33a3805 100755 --- a/build-wheels-macos.sh +++ b/build-wheels-macos.sh @@ -64,6 +64,8 @@ cp -v ../../../etc/openturns/openturns.conf openturns.libs # write metadata python${PYVER} ${SCRIPTPATH}/write_RECORD.py openturns ${VERSION} +sed -i "" "/Tag:/d" openturns-${VERSION}.dist-info/WHEEL +echo "Tag: ${TAG}" >> openturns-${VERSION}.dist-info/WHEEL # create archive zip -r openturns-${VERSION}-${TAG}.whl openturns openturns.libs openturns-${VERSION}.dist-info diff --git a/build-wheels-mingw.sh b/build-wheels-mingw.sh index b2b2f8f..c4d1f9c 100755 --- a/build-wheels-mingw.sh +++ b/build-wheels-mingw.sh @@ -43,6 +43,8 @@ cd ${PREFIX}/Lib/site-packages/ # write metadata python /io/write_RECORD.py openturns ${VERSION} +sed -i "/Tag:/d" openturns-${VERSION}.dist-info/WHEEL +echo "Tag: ${TAG}" >> openturns-${VERSION}.dist-info/WHEEL # create archive zip -r openturns-${VERSION}-${TAG}.whl openturns openturns-${VERSION}.dist-info @@ -80,7 +82,12 @@ do if test "${pkgname}" = "otagrum"; then cp -v ${MINGW_PREFIX}/bin/libagrum.dll ${PREFIX}/Lib/site-packages/${pkgname}; fi if test "${pkgname}" = "otmixmod"; then cp -v ${MINGW_PREFIX}/bin/libmixmod.dll ${PREFIX}/Lib/site-packages/${pkgname}; fi cd ${PREFIX}/Lib/site-packages + + # write metadata python /io/write_RECORD.py ${pkgname} ${pkgver} + sed -i "/Tag:/d" ${pkgname}-${pkgver}.dist-info/WHEEL + echo "Tag: ${TAG}" >> ${pkgname}-${pkgver}.dist-info/WHEEL + zip -r ${pkgname}-${pkgver}-${TAG}.whl ${pkgname} ${pkgname}-${pkgver}.dist-info sudo cp -v ${pkgname}-${pkgver}-${TAG}.whl /io/wheelhouse/ done