已合并
mie_ops只编译一次 #974
hw-zhoutianyang创建于 4月28日
mie_ops只编译一次 #974
已合并
共 1 个文件变更+5-2
| @@ -1,10 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | cd $CODE_ROOT/src/kernels | 2 | cd $CODE_ROOT/src/kernels |
| 3 | -bash build.sh | 3 | +if ! ls dist/mie_ops*.whl >/dev/null 2>&1; then |
| 4 | + echo "Wheel packages not found in the directory 'dist'. Start to build mie_ops." | ||
| 5 | + bash build.sh | ||
| 6 | +fi | ||
| 4 | if [ ! -d "dist" ]; then | 7 | if [ ! -d "dist" ]; then |
| 5 | echo "The directory of mie_ops wheel package 'dist' not found. Skipping wheel installation." | 8 | echo "The directory of mie_ops wheel package 'dist' not found. Skipping wheel installation." |
| 6 | else | 9 | else |
| 7 | echo "Start to install mie_ops found in the directory of mie_ops wheel package 'dist'." | 10 | echo "Start to install mie_ops found in the directory of mie_ops wheel package 'dist'." |
| 8 | find dist -name "mie_ops*.whl" -exec pip install --force-reinstall --target $OUTPUT_DIR/lib {} \; | 11 | find dist -name "mie_ops*.whl" -exec pip install --force-reinstall --target $OUTPUT_DIR/lib {} \; |
| 9 | fi | 12 | fi |
| 10 | -cd - | 13 | +cd - |