Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: extend free_disk_space to windows? #1949

Open
h-vetinari opened this issue Jun 12, 2024 · 1 comment
Open

ENH: extend free_disk_space to windows? #1949

h-vetinari opened this issue Jun 12, 2024 · 1 comment

Comments

@h-vetinari
Copy link
Member

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:

free_disk_space: Optional[
Union[bool, Nullable, List[Literal["apt", "cache", "docker"]]]
] = Field(
default=False,
description=cleandoc(
"""
Free up disk space before running the Docker container for building on Linux.
The following components can be cleaned up: `apt`, `cache`, `docker`.
When set to `true`, only `apt` and `cache` are cleaned up.
Set it to the full list to clean up all components.
"""

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
Copy link
Member

bkpoon commented Jun 12, 2024

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 (conda-forge/pytorch-cpu-feedstock#231 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants