1- _algos_take_helper = custom_target (' algos_take_helper_pxi' ,
1+ _algos_take_helper = custom_target (
2+ ' algos_take_helper_pxi' ,
23 output : ' algos_take_helper.pxi' ,
34 input : ' algos_take_helper.pxi.in' ,
4- command : [
5- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
6- ]
5+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
76)
8- _algos_common_helper = custom_target (' algos_common_helper_pxi' ,
7+ _algos_common_helper = custom_target (
8+ ' algos_common_helper_pxi' ,
99 output : ' algos_common_helper.pxi' ,
1010 input : ' algos_common_helper.pxi.in' ,
11- command : [
12- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
13- ]
11+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
1412)
15- _khash_primitive_helper = custom_target (' khash_primitive_helper_pxi' ,
13+ _khash_primitive_helper = custom_target (
14+ ' khash_primitive_helper_pxi' ,
1615 output : ' khash_for_primitive_helper.pxi' ,
1716 input : ' khash_for_primitive_helper.pxi.in' ,
18- command : [
19- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
20- ]
17+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
2118)
22- _hashtable_class_helper = custom_target (' hashtable_class_helper_pxi' ,
19+ _hashtable_class_helper = custom_target (
20+ ' hashtable_class_helper_pxi' ,
2321 output : ' hashtable_class_helper.pxi' ,
2422 input : ' hashtable_class_helper.pxi.in' ,
25- command : [
26- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
27- ]
23+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
2824)
29- _hashtable_func_helper = custom_target (' hashtable_func_helper_pxi' ,
25+ _hashtable_func_helper = custom_target (
26+ ' hashtable_func_helper_pxi' ,
3027 output : ' hashtable_func_helper.pxi' ,
3128 input : ' hashtable_func_helper.pxi.in' ,
32- command : [
33- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
34- ]
29+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
3530)
36- _index_class_helper = custom_target (' index_class_helper_pxi' ,
31+ _index_class_helper = custom_target (
32+ ' index_class_helper_pxi' ,
3733 output : ' index_class_helper.pxi' ,
3834 input : ' index_class_helper.pxi.in' ,
39- command : [
40- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
41- ]
35+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
4236)
43- _sparse_op_helper = custom_target (' sparse_op_helper_pxi' ,
37+ _sparse_op_helper = custom_target (
38+ ' sparse_op_helper_pxi' ,
4439 output : ' sparse_op_helper.pxi' ,
4540 input : ' sparse_op_helper.pxi.in' ,
46- command : [
47- py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@'
48- ]
41+ command : [py, tempita, ' @INPUT@' , ' -o' , ' @OUTDIR@' ],
4942)
50- _intervaltree_helper = custom_target (' intervaltree_helper_pxi' ,
43+ _intervaltree_helper = custom_target (
44+ ' intervaltree_helper_pxi' ,
5145 output : ' intervaltree.pxi' ,
5246 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,
5651)
57- _khash_primitive_helper_dep = declare_dependency (sources : _khash_primitive_helper)
5852
5953subdir (' tslibs' )
6054
6155libs_sources = {
6256 # Dict of extension name -> dict of {sources, include_dirs, and deps}
6357 # 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+ },
6562 ' arrays' : {' sources' : [' arrays.pyx' ]},
6663 ' groupby' : {' sources' : [' groupby.pyx' ]},
6764 ' 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+ },
7077 ' indexing' : {' sources' : [' indexing.pyx' ]},
7178 ' 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+ },
7687 ' lib' : {' sources' : [' lib.pyx' , ' src/parser/tokenizer.c' ]},
7788 ' 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+ },
92117 ' ops' : {' sources' : [' ops.pyx' ]},
93118 ' ops_dispatch' : {' sources' : [' ops_dispatch.pyx' ]},
94119 ' properties' : {' sources' : [' properties.pyx' ]},
@@ -98,13 +123,13 @@ libs_sources = {
98123 ' sparse' : {' sources' : [' sparse.pyx' , _sparse_op_helper]},
99124 ' tslib' : {' sources' : [' tslib.pyx' ]},
100125 ' testing' : {' sources' : [' testing.pyx' ]},
101- ' writers' : {' sources' : [' writers.pyx' ]}
126+ ' writers' : {' sources' : [' writers.pyx' ]},
102127}
103128
104129cython_args = [
105130 ' --include-dir' ,
106131 meson .current_build_dir(),
107- ' -X always_allow_keywords=true'
132+ ' -X always_allow_keywords=true' ,
108133]
109134if get_option (' buildtype' ) == ' debug'
110135 cython_args += [' --gdb' ]
@@ -118,7 +143,7 @@ foreach ext_name, ext_dict : libs_sources
118143 include_directories : [inc_np, inc_pd],
119144 dependencies : ext_dict.get(' deps' , '' ),
120145 subdir : ' pandas/_libs' ,
121- install : true
146+ install : true ,
122147 )
123148endforeach
124149
@@ -148,14 +173,11 @@ sources_to_install = [
148173 ' sparse.pyi' ,
149174 ' testing.pyi' ,
150175 ' tslib.pyi' ,
151- ' writers.pyi'
176+ ' writers.pyi' ,
152177]
153178
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' )
159181endforeach
160182
161183subdir (' window' )
0 commit comments