Skip to content

Commit ed7ab8d

Browse files
committed
debug setup.py
1 parent fbad767 commit ed7ab8d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.cirrus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
cirrus_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/python@3.10/bin:$PATH
1112
CIBW_ARCHS_MACOS: arm64

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
from Cython.Build import cythonize
55
import platform
66
import os
7+
import sys
78

89

910
includedirs = []
1011
libdirs = []
12+
print(f"system={platform.system()} machine={platform.machine()}", file=sys.stderr)
1113
if 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")
@@ -42,6 +45,8 @@
4245
else:
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+
4550
extensions = cythonize([
4651
Extension("frog",
4752
[ "frog_wrapper.pyx"],

0 commit comments

Comments
 (0)