summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-11-21 20:42:18 (GMT)
committerGitHub <noreply@github.com>2022-11-21 20:42:18 (GMT)
commit49e554dbafc87245c1364ae00ad064a96f5cb995 (patch)
treeb5a7c2da1060b217886d58e4a14d80209c9a9f2e
parentc450c8c9ed6e420025f39d0e4850a79f8160cdcd (diff)
downloadcpython-49e554dbafc87245c1364ae00ad064a96f5cb995.zip
cpython-49e554dbafc87245c1364ae00ad064a96f5cb995.tar.gz
cpython-49e554dbafc87245c1364ae00ad064a96f5cb995.tar.bz2
gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)
-rw-r--r--Misc/NEWS.d/next/Windows/2022-11-21-19-50-18.gh-issue-98629.tMmB_B.rst1
-rw-r--r--PCbuild/pythoncore.vcxproj2
2 files changed, 2 insertions, 1 deletions
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
index 0000000..46cbf99
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2022-11-21-19-50-18.gh-issue-98629.tMmB_B.rst
@@ -0,0 +1 @@
+Fix initialization of :data:`sys.version` and ``sys._git`` on Windows
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index fd5c317..3c3ff40 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -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>