Skip to content

Commit 3a3fbc0

Browse files
committed
Rework Mac OS build
Use cmake && make to prebuild opencv libraries and use pip to pack them
1 parent 380f78f commit 3a3fbc0

File tree

6 files changed

+239
-341
lines changed

6 files changed

+239
-341
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
- ENABLE_CONTRIB=0
8686
- ENABLE_HEADLESS=0
8787
- TEST_DEPENDS=numpy==1.17.3
88+
cache:
89+
directories: $HOME/.ccache
8890

8991

9092
# headless builds for MacOS
@@ -96,6 +98,8 @@ jobs:
9698
- ENABLE_CONTRIB=0
9799
- ENABLE_HEADLESS=1
98100
- TEST_DEPENDS=numpy==1.17.3
101+
cache:
102+
directories: $HOME/.ccache
99103

100104

101105
# Contrib builds for MacOS
@@ -107,6 +111,8 @@ jobs:
107111
- ENABLE_CONTRIB=1
108112
- ENABLE_HEADLESS=0
109113
- TEST_DEPENDS=numpy==1.17.3
114+
cache:
115+
directories: $HOME/.ccache
110116

111117

112118
# headless contrib builds for MacOS
@@ -118,6 +124,8 @@ jobs:
118124
- ENABLE_CONTRIB=1
119125
- ENABLE_HEADLESS=1
120126
- TEST_DEPENDS=numpy==1.17.3
127+
cache:
128+
directories: $HOME/.ccache
121129

122130

123131
# default builds for Linux

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools", "wheel", "scikit-build", "cmake", "pip",
3+
"setuptools", "wheel", "pip",
44
"numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64'",
55
"numpy==1.19.3; python_version>='3.6' and sys_platform == 'linux' and platform_machine == 'aarch64'",
66
"numpy==1.14.5; python_version=='3.7' and platform_machine != 'aarch64'",

0 commit comments

Comments
 (0)