shorten windows cond env path#4288
Open
lanluo-nvidia wants to merge 6 commits into
Open
Conversation
narendasan
reviewed
May 22, 2026
| short_drive="${SHORT_CONDA_DRIVE%:}:" | ||
| else | ||
| short_drive="" | ||
| for drive in T S R Q P O N M L K J I H G F E D; do |
Collaborator
There was a problem hiding this comment.
This is kind of weird lol
Collaborator
There was a problem hiding this comment.
What is this file trying to do?
Collaborator
Author
There was a problem hiding this comment.
That script shortens a long Conda env path by mapping its parent directory to a temporary Windows drive letter
Example:
C:...\very\very\long\conda\envs\path
becomes something like:
T:
That helps avoid Windows path length failures during builds.
The Windows drive requirement is:
single ASCII letter A-Z, case-insensitive, followed by :
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.
Description
shorten the windows conv env path
Fixes # (issue)
ERROR: Could not install packages due to an OSError: [WinError 206] The filename or extension is too long: 'C:\\actions-runner\\_work\\_temp\\conda_environment_26287354992\\Lib\\site-packages\\torch-2.13.0.dev20260522+cu130.dist-info\\licenses\\third_party\\kineto\\libkineto\\third_party\\dynolog\\third_party\\prometheus-cpp\\3rdparty\\civetweb\\src\\third_party\\duktape-1.5.2'Type of change
Please delete options that are not relevant and/or add your own.
Checklist: