Skip to content

Commit

Permalink
[python3] Support arm (#21528)
Browse files Browse the repository at this point in the history
* [python3] Support arm on non Windows

* Support arm on all platform, add host dependency

* version

* [pybind11] Add supports

* version

Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
  • Loading branch information
3 people committed Dec 17, 2021
1 parent aa24b58 commit 4b35e71
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ports/pybind11/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "pybind11",
"version-semver": "2.8.1",
"port-version": 1,
"description": "pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code",
"homepage": "https://github.com/pybind/pybind11",
"supports": "!(arm & windows)",
"dependencies": [
"python3",
{
Expand Down
3 changes: 2 additions & 1 deletion ports/python3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
file(GLOB PYTHON_INSTALLERS "${CURRENT_PACKAGES_DIR}/tools/${PORT}/wininst-*.exe")
file(REMOVE ${PYTHON_LIBS} ${PYTHON_INSTALLERS})

if(PYTHON_ALLOW_EXTENSIONS)
# The generated python executable must match the host arch
if(PYTHON_ALLOW_EXTENSIONS AND NOT VCPKG_CROSSCOMPILING)
message(STATUS "Bootstrapping pip")
vcpkg_execute_required_process(COMMAND python -m ensurepip
WORKING_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}"
Expand Down
8 changes: 6 additions & 2 deletions ports/python3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "python3",
"version-semver": "3.10.1",
"port-version": 1,
"port-version": 2,
"description": "The Python programming language",
"homepage": "https://github.com/python/cpython",
"supports": "!(arm | uwp)",
"supports": "!uwp",
"dependencies": [
{
"name": "bzip2",
Expand All @@ -31,6 +31,10 @@
"name": "openssl",
"platform": "!(windows & static)"
},
{
"name": "python3",
"host": true
},
{
"name": "sqlite3",
"platform": "!(windows & static)"
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5466,7 +5466,7 @@
},
"pybind11": {
"baseline": "2.8.1",
"port-version": 0
"port-version": 1
},
"pystring": {
"baseline": "1.1.3",
Expand All @@ -5478,7 +5478,7 @@
},
"python3": {
"baseline": "3.10.1",
"port-version": 1
"port-version": 2
},
"qca": {
"baseline": "2.3.4",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/pybind11.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "16618fe9543461ee68ba815f511afacbbcfd8330",
"version-semver": "2.8.1",
"port-version": 1
},
{
"git-tree": "893da2421e31681611515d8416a8f1a3b4496b5e",
"version-semver": "2.8.1",
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": "198663bdc6b156d4423eb6ebf085c803f83babf8",
"version-semver": "3.10.1",
"port-version": 2
},
{
"git-tree": "5fe3685d04e62103465074dbe416e3158a6017a8",
"version-semver": "3.10.1",
Expand Down

0 comments on commit 4b35e71

Please sign in to comment.