Skip to content

0.8 round on Windows: the copy pool's fork handler, an editable install's path - #520

Merged
berkgeveci merged 2 commits into
Kitware:mainfrom
berkgeveci:windows/0.8
Dec 6, 2026
Merged

berkgeveci merged 2 commits into
Kitware:mainfrom
berkgeveci:windows/0.8

Conversation

@berkgeveci

Copy link
Copy Markdown
Collaborator

The fixes from the 0.8 validation round on Windows (a T4 in TCC mode, on AWS). Everything else in the round passed: the whole suite, 64-bit ids, debug mode, unfilled new arrays, the disk cache, the timing tests, the examples on CPU and CUDA, the VTK examples, the docs on CUDA, and histogram on two threads.

  • Copy pool. _host_copy called os.register_at_fork when it made its pool, and Windows has no such function. So every host copy of 32 MiB or more raised AttributeError on Windows whenever there were two or more copy threads. The handler is now registered only where os has it.
  • Editable version. _package_version took the path of direct_url.json's file:///C:/... URL, which is /C:/... and opens nothing on Windows. An editable checkout's version then fell back to the version it was installed at, so the removed_in guard read the wrong one. It now uses url2pathname, which also unquotes elsewhere, as unquote did.

test_host_copies.py and test_deprecations.py pass on Windows and macOS.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GG7WYUWKreUuUnumV7zzqb

test_host_copies' large copy failed on Windows with AttributeError: the
copy pool, made on the first host copy of _PARALLEL_COPY_BYTES or more,
called os.register_at_fork, which Windows lacks. Any such copy on a host
with two or more copy threads raised there. Windows never forks, so the
handler is only registered where it exists.
test_an_editable_install_is_read_at_its_source_trees_version failed on
Windows: the path of direct_url.json's file:///C:/... URL is /C:/...,
which opens nothing there, so the version fell back to the metadata's
(the one installed at), and the removed_in guard read the wrong version
in a checkout. url2pathname gives C:\... on Windows and the unquoted path
elsewhere, as before.
@berkgeveci
berkgeveci added this pull request to the merge queue Dec 6, 2026
Merged via the queue into Kitware:main with commit c8691a3 Dec 6, 2026
29 checks passed
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

Successfully merging this pull request may close these issues.

1 participant