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 44
55cirrus_wheels_macos_arm64_task :
66 name : Build macOS arm64 wheels.
7+ trigger_type : manual
78 macos_instance :
8- image : ghcr.io/cirruslabs/macos-monterey-xcode:13.3.1
9+ image : ghcr.io/cirruslabs/macos-monterey-xcode:latest
910 env :
1011 PATH :
/opt/homebrew/opt/[email protected] /bin:$PATH 1112 CIBW_ARCHS_MACOS : arm64
Original file line number Diff line number Diff line change 44from Cython .Build import cythonize
55import platform
66import os
7+ import sys
78
89
910includedirs = []
1011libdirs = []
12+ print (f"system={ platform .system ()} machine={ platform .machine ()} " , file = sys .stderr )
1113if platform .system () == "Darwin" :
1214 #we are running on Mac OS X (with homebrew hopefully), stuff is in specific locations:
1315 if platform .machine ().lower () == "arm64" :
16+ print ("(macos arm64 detected)" , file = sys .stderr )
1417 libdirs .append ("/opt/homebrew/lib" )
1518 includedirs .append ("/opt/homebrew/include" )
1619 libdirs .append ("/opt/homebrew/icu4c/lib" )
4245else :
4346 extra_options = ['-D U_USING_ICU_NAMESPACE=1' ]
4447
48+ print (f"include_dirs={ ' ' .join (includedirs )} library_dirs={ ' ' .join (libdirs )} extra_options={ ' ' .join (extra_options )} " , file = sys .stderr )
49+
4550extensions = cythonize ([
4651 Extension ("frog" ,
4752 [ "frog_wrapper.pyx" ],
You can’t perform that action at this time.
0 commit comments