-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path0001-Support-custom-platform-tag.patch
51 lines (44 loc) · 1.51 KB
/
0001-Support-custom-platform-tag.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From d06671d9031156ce3b29e06d7edb344d8f6ee0d6 Mon Sep 17 00:00:00 2001
Message-ID: <d06671d9031156ce3b29e06d7edb344d8f6ee0d6.1698087175.git.stefan@agner.ch>
From: Stefan Agner <stefan@agner.ch>
Date: Tue, 22 Nov 2022 10:51:17 +0100
Subject: [PATCH] Support custom platform tag
---
src/controller/python/BUILD.gn | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn
index 4b84c63d5f..b01dafbc30 100644
--- a/src/controller/python/BUILD.gn
+++ b/src/controller/python/BUILD.gn
@@ -35,6 +35,15 @@ declare_args() {
chip_python_version = "0.0"
chip_python_package_prefix = "chip"
chip_python_supports_stack_locking = chip_system_config_locking != "none"
+
+ if (current_os == "mac") {
+ chip_python_platform_tag = string_replace(
+ string_replace(mac_deployment_target, "macos", "macosx."),
+ ".",
+ "_")
+ } else {
+ chip_python_platform_tag = current_os
+ }
}
shared_library("ChipDeviceCtrl") {
@@ -340,16 +349,7 @@ chip_python_wheel_action("chip-core") {
cpu_tag = current_cpu
}
- if (current_os == "mac") {
- py_platform_tag = string_replace(
- string_replace(mac_deployment_target, "macos", "macosx."),
- ".",
- "_")
- } else {
- py_platform_tag = current_os
- }
-
- py_platform_tag = py_platform_tag + "_" + cpu_tag
+ py_platform_tag = chip_python_platform_tag + "_" + cpu_tag
tags = "cp37-abi3-" + py_platform_tag
--
2.42.0