conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
146 stars 169 forks source link

ENH: extend free_disk_space to windows? #1949

Open h-vetinari opened 4 weeks ago

h-vetinari commented 4 weeks ago

I'm running into

OSError: [Errno 28] No space left on device

on a windows build, however, free_disk_space is documented to only work on linux: https://github.com/conda-forge/conda-smithy/blob/0361df53e4ffb856ddd9733abae69b6e17b11ce7/conda_smithy/schema.py#L139-L149

Presumably there are some low-hanging fruit we could clean out also on windows images?

CC @carterbox @bkpoon @mikemhenry @beckermr @jakirkham as people who touched these lines in recent times.

bkpoon commented 4 weeks ago

On Windows, I switch the build to use C:\ instead of D:\. There should be at least 70 GB available. To move the build, you modify conda-forge.yml to have

azure:
  settings_win:
    variables:
      CONDA_BLD_PATH: C:\\bld\\

I used to use a directory in C:\Miniconda, but I eventually hit an issue with long path names. C:\bld is short enough. I suggested this for the pytorch Windows build here (https://github.com/conda-forge/pytorch-cpu-feedstock/pull/231#issuecomment-2041186886).