]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Nov 2022 21:13:52 +0000 (13:13 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 21:13:52 +0000 (13:13 -0800)
(cherry picked from commit 49e554dbafc87245c1364ae00ad064a96f5cb995)

Co-authored-by: Steve Dower <steve.dower@python.org>
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 a38040159e1fc8dde389a09bc66207258d54f6fe..078cc597a129f8bfe0eae984de8b79950a8b6c8f 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>