[python3] Fix wrapper, mark mingw unsupported (#25699)

* Fix python3 wrapper

* python3 is unsupported on mingw

* Update versions
This commit is contained in:
Kai Pastor 2022-07-12 20:08:50 +02:00 committed by GitHub
parent 6d087e76ef
commit 4e7bcf7a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -89,6 +89,9 @@ if(_PythonFinder_WantLibs)
find_dependency(Intl)
if(TARGET @PythonFinder_PREFIX@::Python)
get_target_property(_PYTHON_INTERFACE_LIBS @PythonFinder_PREFIX@::Python INTERFACE_LINK_LIBRARIES)
if(NOT _PYTHON_INTERFACE_LIBS)
set(_PYTHON_INTERFACE_LIBS "")
endif()
list(REMOVE_ITEM _PYTHON_INTERFACE_LIBS "-liconv" "-lintl")
list(APPEND _PYTHON_INTERFACE_LIBS
Iconv::Iconv
@ -99,6 +102,9 @@ if(_PythonFinder_WantLibs)
endif()
if(TARGET @PythonFinder_PREFIX@::Module)
get_target_property(_PYTHON_INTERFACE_LIBS @PythonFinder_PREFIX@::Module INTERFACE_LINK_LIBRARIES)
if(NOT _PYTHON_INTERFACE_LIBS)
set(_PYTHON_INTERFACE_LIBS "")
endif()
list(REMOVE_ITEM _PYTHON_INTERFACE_LIBS "-liconv" "-lintl")
list(APPEND _PYTHON_INTERFACE_LIBS
Iconv::Iconv

View File

@ -1,10 +1,11 @@
{
"name": "python3",
"version": "3.10.5",
"port-version": 1,
"description": "The Python programming language",
"homepage": "https://github.com/python/cpython",
"license": "Python-2.0",
"supports": "!uwp",
"supports": "!uwp & !mingw",
"dependencies": [
{
"name": "bzip2",

View File

@ -5706,7 +5706,7 @@
},
"python3": {
"baseline": "3.10.5",
"port-version": 0
"port-version": 1
},
"qca": {
"baseline": "2.3.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c345c4a8ad91847522188517c68e8f83637f4440",
"version": "3.10.5",
"port-version": 1
},
{
"git-tree": "d7c43b7217707bb35a86859d9285496fc2bce8e2",
"version": "3.10.5",