mv"${WHL_BASE}/${WHL_BASE}.dist-info""${WHL_BASE}/transformer_engine_cu12-${VERSION}.dist-info"|| error_exit "Failed to move ${WHL_BASE}.dist-info to transformer_engine_cu12-${VERSION}.dist-info"
wheel pack ${WHL_BASE}|| error_exit "Failed to pack ${WHL_BASE}"
rm dist/*.whl|| error_exit "Failed to remove dist/*.whl"
mv*.whl dist/|| error_exit "Failed to move *.whl to dist/"
NVTE_RELEASE_BUILD=1 NVTE_BUILD_METAPACKAGE=1 python3 setup.py bdist_wheel|| error_exit "Failed to setup metapackage"
cd transformer_engine/jax
NVTE_RELEASE_BUILD=1 python3 setup.py sdist
NVTE_RELEASE_BUILD=1 python3 setup.py sdist|| error_exit "Failed to setup sdist"
pip3 install dist/*
pip3 install dist/*|| error_exit "Failed to install dist/*"
cd$TE_PATH
pip3 install dist/*.whl --no-deps
pip3 install dist/*.whl --no-deps|| error_exit "Failed to install dist/*.whl --no-deps"
mv"${WHL_BASE}/${WHL_BASE}.dist-info""${WHL_BASE}/transformer_engine_cu12-${VERSION}.dist-info"|| error_exit "Failed to move ${WHL_BASE}.dist-info to transformer_engine_cu12-${VERSION}.dist-info"
wheel pack ${WHL_BASE}|| error_exit "Failed to pack ${WHL_BASE}"
rm dist/*.whl|| error_exit "Failed to remove dist/*.whl"
mv*.whl dist/|| error_exit "Failed to move *.whl to dist/"
NVTE_RELEASE_BUILD=1 NVTE_BUILD_METAPACKAGE=1 python3 setup.py bdist_wheel|| error_exit "Failed to setup metapackage"
cd transformer_engine/pytorch
NVTE_RELEASE_BUILD=1 python3 setup.py sdist
NVTE_RELEASE_BUILD=1 python3 setup.py sdist|| error_exit "Failed to setup sdist"
pip3 install dist/*
pip3 install dist/*|| error_exit "Failed to install dist/*"
cd$TE_PATH
pip3 install dist/*.whl --no-deps
pip3 install dist/*.whl --no-deps|| error_exit "Failed to install dist/*.whl --no-deps"