diff options
author | Steve Dower <steve.dower@python.org> | 2022-11-21 20:42:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 20:42:18 (GMT) |
commit | 49e554dbafc87245c1364ae00ad064a96f5cb995 (patch) | |
tree | b5a7c2da1060b217886d58e4a14d80209c9a9f2e | |
parent | c450c8c9ed6e420025f39d0e4850a79f8160cdcd (diff) | |
download | cpython-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.rst | 1 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 2 |
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> |