Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow detecting Dev Drive on Windows #104803

Closed
zooba opened this issue May 23, 2023 · 0 comments
Closed

Allow detecting Dev Drive on Windows #104803

zooba opened this issue May 23, 2023 · 0 comments
Assignees

Comments

@zooba
Copy link
Member

zooba commented May 23, 2023

Windows just announced a new Dev Drive feature, optimised for high I/O scenarios such as build and test. It also works as a very clear signal that the user is a developer and is doing developer-like tasks.

We should add a function to allow querying whether a specific path is on a Dev Drive. The API is relatively low level, and cannot currently be used from Python, but would allow Python apps to detect when the user is operating on a Dev Drive (e.g. installing or compiling something on one), or choose or offer a more performant temporary or cache location than the user directory.

(For a variety of mostly compatibility reasons, there's no way for Windows to redirect %TEMP% onto a Dev Drive, but apps that are aware of it can do it for themselves.)

Linked PRs

@zooba zooba self-assigned this May 23, 2023
zooba added a commit to zooba/cpython that referenced this issue May 23, 2023
zooba added a commit to zooba/cpython that referenced this issue May 23, 2023
zooba added a commit that referenced this issue May 29, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 29, 2023
…ath is on a Windows Dev Drive (pythonGH-104805)

(cherry picked from commit bfd20d2)

Co-authored-by: Steve Dower <steve.dower@python.org>
zooba added a commit that referenced this issue May 29, 2023
… on a Windows Dev Drive (GH-104805)

(cherry picked from commit bfd20d2)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba closed this as completed May 29, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant