Skip to content

Commit

Permalink
Fix wheel tag
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
jschueller committed Mar 4, 2024
1 parent a14cf94 commit d8f31d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions build-wheels-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions build-wheels-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d8f31d1

Please sign in to comment.