Skip to content

Commit

Permalink
[python3] Fix feature deprecated-win7-support. (microsoft#22090)
Browse files Browse the repository at this point in the history
* [python3] Fix deprecated-win7-support patch.

* x-add-version
  • Loading branch information
Hoikas authored Dec 20, 2021
1 parent bc85a63 commit 6dbe00f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
17 changes: 13 additions & 4 deletions ports/python3/0006-restore-support-for-windows-7.patch
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,16 @@ diff --git a/PC/getpathp.c b/PC/getpathp.c
index 53da3a6..3d58bbf 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -250,14 +250,43 @@ ismodule(wchar_t *filename, int update_filename)
@@ -90,7 +90,7 @@
#endif

#include <windows.h>
-#include <pathcch.h>
+#include <Shlwapi.h>

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -249,14 +249,43 @@ ismodule(wchar_t *filename, int update_filename)
stuff as fits will be appended.
*/

Expand Down Expand Up @@ -164,15 +173,15 @@ index d7d3cf0..6e9c090 100644
/* We only set these values when building Python - we don't want to force
these values on extensions, as that will affect the prototypes and
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 2625d02..20e3d6e 100644
index c39ba3e1a9..0ef3a05fb6 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -106,7 +106,7 @@
<PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
- <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>version.lib;ws2_32.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
2 changes: 1 addition & 1 deletion ports/python3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "python3",
"version-semver": "3.10.1",
"port-version": 2,
"port-version": 3,
"description": "The Python programming language",
"homepage": "https://github.com/python/cpython",
"supports": "!uwp",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5486,7 +5486,7 @@
},
"python3": {
"baseline": "3.10.1",
"port-version": 2
"port-version": 3
},
"qca": {
"baseline": "2.3.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/python3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "35f071d147af8c4d8dfac5eaa95ad41e395448a5",
"version-semver": "3.10.1",
"port-version": 3
},
{
"git-tree": "198663bdc6b156d4423eb6ebf085c803f83babf8",
"version-semver": "3.10.1",
Expand Down

0 comments on commit 6dbe00f

Please sign in to comment.