Commit 097addc 1 parent 2989469 commit 097addc Copy full SHA for 097addc
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 16
16
CIBW_ARCHS_LINUX : " x86_64 aarch64"
17
17
CIBW_ARCHS_WINDOWS : " AMD64 x86"
18
18
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
19
- CIBW_CONFIG_SETTINGS : " --use-cython --use-cffi "
19
+ CIBW_ENVIRONMENT : USE-CYTHON="1" USE-CFFI="1 "
20
20
steps :
21
21
- uses : actions/checkout@v4
22
+ - name : Check out recursively
23
+ run : git submodule update --init --recursive
22
24
- uses : actions/setup-python@v5
23
25
- name : Set up QEMU
24
26
if : runner.os == 'Linux'
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ def has_option(name: str) -> bool:
92
92
if name in sys .argv [1 :]:
93
93
sys .argv .remove (name )
94
94
return True
95
+ name = name .strip ("-" ).upper ()
96
+ if os .environ .get (name , None ) is not None :
97
+ return True
95
98
return False
96
99
97
100
@@ -100,7 +103,7 @@ def has_option(name: str) -> bool:
100
103
setup_kw = {}
101
104
if has_option ("--use-cython" ):
102
105
print ("building cython" )
103
- setup_requires .append ("cython " )
106
+ setup_requires .append ("Cython>=3.0.9 " )
104
107
setup_kw ["ext_modules" ] = cythonize (
105
108
extensions ,
106
109
compiler_directives = {
You can’t perform that action at this time.
0 commit comments