Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Conversation

@mszhanyi
Copy link
Contributor

@mszhanyi mszhanyi commented Apr 17, 2021

remove useless code

same reason as pytorch/pytorch#56230

set VSDEVCMD_ARGS=-vcvars_ver=%VC_VERSION%
)
if "%VC_YEAR%" == "2017" powershell windows/internal/vs2017_install.ps1 %VC_VERSION%
if "%VC_YEAR%" == "2019" powershell windows/internal/vs2019_install.ps1 %VC_VERSION%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I don't find where is using vc_version for VS2019 now.
  2. Do we still need VS 2017?

at first, I only wanted to change
if "%VC_YEAR%" == "2019" powershell windows/internal/vs2019_install.ps1 %VC_VERSION%
to
if "%VC_YEAR%" == "2019" powershell windows/internal/vs2019_install.ps1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is that it's very easy to scrape the lastest VS version but I don't find a way to scrape the matched vc toolchain version in web.

Copy link
Contributor

@peterjc123 peterjc123 Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean if you delete this line, then vs2019_install.ps1 is not executed, is this the correct behaviour? Sorry, looks like I made a mistake here. git diff shows a slightly different result from I would expect. And, you are right.

@seemethere seemethere merged commit 56b30bf into pytorch:master Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants