-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
resolve #7595 implement win 10 long path reg key for conda init #7629
Conversation
5b60add
to
dae890c
Compare
conda/core/initialize.py
Outdated
@@ -1107,6 +1118,29 @@ def init_cmd_exe_registry(target_path, conda_prefix): | |||
return Result.NO_CHANGE | |||
|
|||
|
|||
def init_long_path(target_path): | |||
win_ver, win_rev = platform.platform().split('-')[1:3] | |||
# win10, build 14352 was the first preview release that supported this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just extracted from another PR and merged into master something that might be cleaner here (the new code was in #7630; you'll need to rebase). For win_rev
, I believe you can use context.os_distribution_name_version[1]
. I think on older systems, what you have for win_ver
might actually be able to be NT
, so int('NT')
would 💣.
dae890c
to
45ae856
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
45ae856
to
d791398
Compare
Hi there, thank you for your contribution to Conda! This pull request has been automatically locked since it has not had recent activity after it was closed. Please open a new issue or pull request if needed. |
toward #7595