| echo "RUNNING ON $(uname -a) WITH $(nproc) CPUS AND $(free -m)" |
| # Defaults here so they can be changed in one place |
| if [[ "$PACKAGE_TYPE" == 'conda' ]]; then |
| build_script='conda/build_pytorch.sh' |
| elif [[ "$DESIRED_CUDA" == cpu ]]; then |
| build_script='manywheel/build_cpu.sh' |
| build_script='manywheel/build.sh' |
| # We want to call unbuffer, which calls tclsh which finds the expect |
| # package. The expect was installed by yum into /usr/bin so we want to |
| # find /usr/bin/tclsh, but this is shadowed by /opt/conda/bin/tclsh in |
| # the conda docker images. |
| if [[ "$PACKAGE_TYPE" == 'conda' ]]; then |
| ln -s /usr/bin/tclsh /just_tclsh_bin/tclsh |
| export PATH=/just_tclsh_bin:$PATH |
| SKIP_ALL_TESTS=1 unbuffer "/builder/$build_script" | ts |