Repository navigation
0.8 round on Windows: the copy pool's fork handler, an editable install's path - #520
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
histogramon two threads._host_copycalledos.register_at_forkwhen it made its pool, and Windows has no such function. So every host copy of 32 MiB or more raisedAttributeErroron Windows whenever there were two or more copy threads. The handler is now registered only whereoshas it._package_versiontook the path ofdirect_url.json'sfile:///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 theremoved_inguard read the wrong one. It now usesurl2pathname, which also unquotes elsewhere, asunquotedid.test_host_copies.pyandtest_deprecations.pypass on Windows and macOS.🤖 Generated with Claude Code
https://claude.ai/code/session_01GG7WYUWKreUuUnumV7zzqb