1
- _algos_take_helper = custom_target (' algos_take_helper_pxi' ,
1
+ _algos_take_helper = custom_target (
2
+ ' algos_take_helper_pxi' ,
2
3
output : ' algos_take_helper.pxi' ,
3
4
input : ' algos_take_helper.pxi.in' ,
4
- command : [
5
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
6
- ]
5
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
7
6
)
8
- _algos_common_helper = custom_target (' algos_common_helper_pxi' ,
7
+ _algos_common_helper = custom_target (
8
+ ' algos_common_helper_pxi' ,
9
9
output : ' algos_common_helper.pxi' ,
10
10
input : ' algos_common_helper.pxi.in' ,
11
- command : [
12
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
13
- ]
11
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
14
12
)
15
- _khash_primitive_helper = custom_target (' khash_primitive_helper_pxi' ,
13
+ _khash_primitive_helper = custom_target (
14
+ ' khash_primitive_helper_pxi' ,
16
15
output : ' khash_for_primitive_helper.pxi' ,
17
16
input : ' khash_for_primitive_helper.pxi.in' ,
18
- command : [
19
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
20
- ]
17
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
21
18
)
22
- _hashtable_class_helper = custom_target (' hashtable_class_helper_pxi' ,
19
+ _hashtable_class_helper = custom_target (
20
+ ' hashtable_class_helper_pxi' ,
23
21
output : ' hashtable_class_helper.pxi' ,
24
22
input : ' hashtable_class_helper.pxi.in' ,
25
- command : [
26
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
27
- ]
23
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
28
24
)
29
- _hashtable_func_helper = custom_target (' hashtable_func_helper_pxi' ,
25
+ _hashtable_func_helper = custom_target (
26
+ ' hashtable_func_helper_pxi' ,
30
27
output : ' hashtable_func_helper.pxi' ,
31
28
input : ' hashtable_func_helper.pxi.in' ,
32
- command : [
33
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
34
- ]
29
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
35
30
)
36
- _index_class_helper = custom_target (' index_class_helper_pxi' ,
31
+ _index_class_helper = custom_target (
32
+ ' index_class_helper_pxi' ,
37
33
output : ' index_class_helper.pxi' ,
38
34
input : ' index_class_helper.pxi.in' ,
39
- command : [
40
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
41
- ]
35
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
42
36
)
43
- _sparse_op_helper = custom_target (' sparse_op_helper_pxi' ,
37
+ _sparse_op_helper = custom_target (
38
+ ' sparse_op_helper_pxi' ,
44
39
output : ' sparse_op_helper.pxi' ,
45
40
input : ' sparse_op_helper.pxi.in' ,
46
- command : [
47
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
48
- ]
41
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
49
42
)
50
- _intervaltree_helper = custom_target (' intervaltree_helper_pxi' ,
43
+ _intervaltree_helper = custom_target (
44
+ ' intervaltree_helper_pxi' ,
51
45
output : ' intervaltree.pxi' ,
52
46
input : ' intervaltree.pxi.in' ,
53
- command : [
54
- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
55
- ]
47
+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
48
+ )
49
+ _khash_primitive_helper_dep = declare_dependency (
50
+ sources : _khash_primitive_helper,
56
51
)
57
- _khash_primitive_helper_dep = declare_dependency (sources : _khash_primitive_helper)
58
52
59
53
subdir (' tslibs' )
60
54
61
55
libs_sources = {
62
56
# Dict of extension name -> dict of {sources, include_dirs, and deps}
63
57
# numpy include dir is implicitly included
64
- ' algos' : {' sources' : [' algos.pyx' , _algos_common_helper, _algos_take_helper], ' deps' : _khash_primitive_helper_dep},
58
+ ' algos' : {
59
+ ' sources' : [' algos.pyx' , _algos_common_helper, _algos_take_helper],
60
+ ' deps' : _khash_primitive_helper_dep,
61
+ },
65
62
' arrays' : {' sources' : [' arrays.pyx' ]},
66
63
' groupby' : {' sources' : [' groupby.pyx' ]},
67
64
' hashing' : {' sources' : [' hashing.pyx' ]},
68
- ' hashtable' : {' sources' : [' hashtable.pyx' , _hashtable_class_helper, _hashtable_func_helper], ' deps' : _khash_primitive_helper_dep},
69
- ' index' : {' sources' : [' index.pyx' , _index_class_helper], ' deps' : _khash_primitive_helper_dep},
65
+ ' hashtable' : {
66
+ ' sources' : [
67
+ ' hashtable.pyx' ,
68
+ _hashtable_class_helper,
69
+ _hashtable_func_helper,
70
+ ],
71
+ ' deps' : _khash_primitive_helper_dep,
72
+ },
73
+ ' index' : {
74
+ ' sources' : [' index.pyx' , _index_class_helper],
75
+ ' deps' : _khash_primitive_helper_dep,
76
+ },
70
77
' indexing' : {' sources' : [' indexing.pyx' ]},
71
78
' internals' : {' sources' : [' internals.pyx' ]},
72
- ' interval' : {' sources' : [' interval.pyx' , _intervaltree_helper],
73
- ' deps' : _khash_primitive_helper_dep},
74
- ' join' : {' sources' : [' join.pyx' , _khash_primitive_helper],
75
- ' deps' : _khash_primitive_helper_dep},
79
+ ' interval' : {
80
+ ' sources' : [' interval.pyx' , _intervaltree_helper],
81
+ ' deps' : _khash_primitive_helper_dep,
82
+ },
83
+ ' join' : {
84
+ ' sources' : [' join.pyx' , _khash_primitive_helper],
85
+ ' deps' : _khash_primitive_helper_dep,
86
+ },
76
87
' lib' : {' sources' : [' lib.pyx' , ' src/parser/tokenizer.c' ]},
77
88
' missing' : {' sources' : [' missing.pyx' ]},
78
- ' pandas_datetime' : {' sources' : [' src/vendored/numpy/datetime/np_datetime.c' ,
79
- ' src/vendored/numpy/datetime/np_datetime_strings.c' ,
80
- ' src/datetime/date_conversions.c' ,
81
- ' src/datetime/pd_datetime.c' ]},
82
- ' pandas_parser' : {' sources' : [' src/parser/tokenizer.c' ,
83
- ' src/parser/io.c' ,
84
- ' src/parser/pd_parser.c' ]},
85
- ' parsers' : {' sources' : [' parsers.pyx' , ' src/parser/tokenizer.c' , ' src/parser/io.c' ],
86
- ' deps' : _khash_primitive_helper_dep},
87
- ' json' : {' sources' : [' src/vendored/ujson/python/ujson.c' ,
88
- ' src/vendored/ujson/python/objToJSON.c' ,
89
- ' src/vendored/ujson/python/JSONtoObj.c' ,
90
- ' src/vendored/ujson/lib/ultrajsonenc.c' ,
91
- ' src/vendored/ujson/lib/ultrajsondec.c' ]},
89
+ ' pandas_datetime' : {
90
+ ' sources' : [
91
+ ' src/vendored/numpy/datetime/np_datetime.c' ,
92
+ ' src/vendored/numpy/datetime/np_datetime_strings.c' ,
93
+ ' src/datetime/date_conversions.c' ,
94
+ ' src/datetime/pd_datetime.c' ,
95
+ ],
96
+ },
97
+ ' pandas_parser' : {
98
+ ' sources' : [
99
+ ' src/parser/tokenizer.c' ,
100
+ ' src/parser/io.c' ,
101
+ ' src/parser/pd_parser.c' ,
102
+ ],
103
+ },
104
+ ' parsers' : {
105
+ ' sources' : [' parsers.pyx' , ' src/parser/tokenizer.c' , ' src/parser/io.c' ],
106
+ ' deps' : _khash_primitive_helper_dep,
107
+ },
108
+ ' json' : {
109
+ ' sources' : [
110
+ ' src/vendored/ujson/python/ujson.c' ,
111
+ ' src/vendored/ujson/python/objToJSON.c' ,
112
+ ' src/vendored/ujson/python/JSONtoObj.c' ,
113
+ ' src/vendored/ujson/lib/ultrajsonenc.c' ,
114
+ ' src/vendored/ujson/lib/ultrajsondec.c' ,
115
+ ],
116
+ },
92
117
' ops' : {' sources' : [' ops.pyx' ]},
93
118
' ops_dispatch' : {' sources' : [' ops_dispatch.pyx' ]},
94
119
' properties' : {' sources' : [' properties.pyx' ]},
@@ -98,13 +123,13 @@ libs_sources = {
98
123
' sparse' : {' sources' : [' sparse.pyx' , _sparse_op_helper]},
99
124
' tslib' : {' sources' : [' tslib.pyx' ]},
100
125
' testing' : {' sources' : [' testing.pyx' ]},
101
- ' writers' : {' sources' : [' writers.pyx' ]}
126
+ ' writers' : {' sources' : [' writers.pyx' ]},
102
127
}
103
128
104
129
cython_args = [
105
130
' --include-dir' ,
106
131
meson .current_build_dir(),
107
- ' -X always_allow_keywords=true'
132
+ ' -X always_allow_keywords=true' ,
108
133
]
109
134
if get_option (' buildtype' ) == ' debug'
110
135
cython_args += [' --gdb' ]
@@ -118,7 +143,7 @@ foreach ext_name, ext_dict : libs_sources
118
143
include_directories : [inc_np, inc_pd],
119
144
dependencies : ext_dict.get(' deps' , '' ),
120
145
subdir : ' pandas/_libs' ,
121
- install : true
146
+ install : true ,
122
147
)
123
148
endforeach
124
149
@@ -148,14 +173,11 @@ sources_to_install = [
148
173
' sparse.pyi' ,
149
174
' testing.pyi' ,
150
175
' tslib.pyi' ,
151
- ' writers.pyi'
176
+ ' writers.pyi' ,
152
177
]
153
178
154
- foreach source : sources_to_install
155
- py.install_sources(
156
- source,
157
- subdir : ' pandas/_libs'
158
- )
179
+ foreach source : sources_to_install
180
+ py.install_sources(source, subdir : ' pandas/_libs' )
159
181
endforeach
160
182
161
183
subdir (' window' )
0 commit comments