File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ cy_args = [' -X always_allow_keywords=true' ]
2
+ # Use shared utility code to reduce wheel sizes
3
+ # copied from https://github.com/scikit-learn/scikit-learn/pull/31151/files
4
+ if cy.version().version_compare(' >=3.1.0' )
5
+ cython_args += [' --shared=pandas._libs._cyutility' ]
6
+ endif
7
+
1
8
py.extension_module(
2
9
' aggregations' ,
3
10
[' aggregations.pyx' ],
4
- cython_args : [ ' -X always_allow_keywords=true ' , ' --shared=pandas._libs._cyutility ' ] ,
11
+ cython_args : cy_args ,
5
12
include_directories : [inc_np, inc_pd],
6
13
subdir : ' pandas/_libs/window' ,
7
14
override_options : [' cython_language=cpp' ],
@@ -11,7 +18,7 @@ py.extension_module(
11
18
py.extension_module(
12
19
' indexers' ,
13
20
[' indexers.pyx' ],
14
- cython_args : [ ' -X always_allow_keywords=true ' , ' --shared=pandas._libs._cyutility ' ] ,
21
+ cython_args : cy_args ,
15
22
include_directories : [inc_np, inc_pd],
16
23
subdir : ' pandas/_libs/window' ,
17
24
install : true ,
You can’t perform that action at this time.
0 commit comments