gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)

This commit is contained in:
Steve Dower 2022-11-21 20:42:18 +00:00 committed by GitHub
parent c450c8c9ed
commit 49e554dbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix initialization of :data:`sys.version` and ``sys._git`` on Windows

View File

@ -595,7 +595,7 @@
</PropertyGroup>
<Message Text="Building $(GitTag):$(GitVersion) $(GitBranch)" Importance="high" />
<ItemGroup>
<ClCompile Condition="$(Filename) == 'getbuildinfo'">
<ClCompile Condition="%(Filename) == 'getbuildinfo'">
<PreprocessorDefinitions>GITVERSION="$(GitVersion)";GITTAG="$(GitTag)";GITBRANCH="$(GitBranch)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemGroup>