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

(cherry picked from commit 49e554dbaf)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2022-11-21 13:13:52 -08:00 committed by GitHub
parent 0c6b3a2d8e
commit 2d5f4ba174
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

@ -585,7 +585,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>