File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
cirrus_wheels_macos_arm64_task :
6
6
name : Build macOS arm64 wheels.
7
+ trigger_type : manual
7
8
macos_instance :
8
- image : ghcr.io/cirruslabs/macos-monterey-xcode:13.3.1
9
+ image : ghcr.io/cirruslabs/macos-monterey-xcode:latest
9
10
env :
10
11
PATH : /opt/homebrew/opt/python@3.10/bin:$PATH
11
12
CIBW_ARCHS_MACOS : arm64
Original file line number Diff line number Diff line change 4
4
from Cython .Build import cythonize
5
5
import platform
6
6
import os
7
+ import sys
7
8
8
9
9
10
includedirs = []
10
11
libdirs = []
12
+ print (f"system={ platform .system ()} machine={ platform .machine ()} " , file = sys .stderr )
11
13
if platform .system () == "Darwin" :
12
14
#we are running on Mac OS X (with homebrew hopefully), stuff is in specific locations:
13
15
if platform .machine ().lower () == "arm64" :
16
+ print ("(macos arm64 detected)" , file = sys .stderr )
14
17
libdirs .append ("/opt/homebrew/lib" )
15
18
includedirs .append ("/opt/homebrew/include" )
16
19
libdirs .append ("/opt/homebrew/icu4c/lib" )
42
45
else :
43
46
extra_options = ['-D U_USING_ICU_NAMESPACE=1' ]
44
47
48
+ print (f"include_dirs={ ' ' .join (includedirs )} library_dirs={ ' ' .join (libdirs )} extra_options={ ' ' .join (extra_options )} " , file = sys .stderr )
49
+
45
50
extensions = cythonize ([
46
51
Extension ("frog" ,
47
52
[ "frog_wrapper.pyx" ],
You can’t perform that action at this time.
0 commit comments