]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)
authorSteve Dower <steve.dower@python.org>
Mon, 21 Nov 2022 20:42:18 +0000 (20:42 +0000)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 20:42:18 +0000 (20:42 +0000)
Misc/NEWS.d/next/Windows/2022-11-21-19-50-18.gh-issue-98629.tMmB_B.rst [new file with mode: 0644]
PCbuild/pythoncore.vcxproj

diff --git a/Misc/NEWS.d/next/Windows/2022-11-21-19-50-18.gh-issue-98629.tMmB_B.rst b/Misc/NEWS.d/next/Windows/2022-11-21-19-50-18.gh-issue-98629.tMmB_B.rst
new file mode 100644 (file)
index 0000000..46cbf99
--- /dev/null
@@ -0,0 +1 @@
+Fix initialization of :data:`sys.version` and ``sys._git`` on Windows
index fd5c3175ce423bd7806549cb49e64cbba5925af3..3c3ff406bdf0aed601ad25dc1c1d34364eff9c48 100644 (file)
     </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>