File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ if cy.version().version_compare('>=3.1.0')
65
65
subdir : ' pandas/_libs' ,
66
66
install : true ,
67
67
)
68
-
69
- add_project_arguments (' --shared=pandas._libs._cyutility' , language : ' cython' )
70
68
endif
71
69
72
70
# Needed by pandas.test() when it looks for the pytest ini options
Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ if get_option('buildtype') == 'debug'
148
148
cython_args += [' --gdb' ]
149
149
endif
150
150
151
+ # Use shared utility code to reduce wheel sizes
152
+ # copied from https://github.com/scikit-learn/scikit-learn/pull/31151/files
153
+ if cy.version().version_compare(' >=3.1.0' )
154
+ cython_args += [' --shared=pandas._libs._cyutility' ]
155
+ endif
156
+
151
157
foreach ext_name, ext_dict : libs_sources
152
158
py.extension_module(
153
159
ext_name,
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ if get_option('buildtype') == 'debug'
28
28
cython_args += [' --gdb' ]
29
29
endif
30
30
31
+ # Use shared utility code to reduce wheel sizes
32
+ # copied from https://github.com/scikit-learn/scikit-learn/pull/31151/files
33
+ if cy.version().version_compare(' >=3.1.0' )
34
+ cython_args += [' --shared=pandas._libs._cyutility' ]
35
+ endif
36
+
31
37
foreach ext_name, ext_dict : tslibs_sources
32
38
py.extension_module(
33
39
ext_name,
Original file line number Diff line number Diff line change 1
1
py.extension_module(
2
2
' aggregations' ,
3
3
[' aggregations.pyx' ],
4
- cython_args : [' -X always_allow_keywords=true' ],
4
+ cython_args : [' -X always_allow_keywords=true --shared=pandas._libs._cyutility ' ],
5
5
include_directories : [inc_np, inc_pd],
6
6
subdir : ' pandas/_libs/window' ,
7
7
override_options : [' cython_language=cpp' ],
@@ -11,7 +11,7 @@ py.extension_module(
11
11
py.extension_module(
12
12
' indexers' ,
13
13
[' indexers.pyx' ],
14
- cython_args : [' -X always_allow_keywords=true' ],
14
+ cython_args : [' -X always_allow_keywords=true --shared=pandas._libs._cyutility ' ],
15
15
include_directories : [inc_np, inc_pd],
16
16
subdir : ' pandas/_libs/window' ,
17
17
install : true ,
You can’t perform that action at this time.
0 commit comments