2
2
project (
3
3
' pandas' ,
4
4
' c' , ' cpp' , ' cython' ,
5
- version : run_command ([' python ' , ' generate_version.py' , ' --print' ], check : true ).stdout().strip(),
5
+ version : run_command ([' generate_version.py' , ' --print' ], check : true ).stdout().strip(),
6
6
license : ' BSD-3' ,
7
7
meson_version : ' >=1.0.1' ,
8
8
default_options : [
9
9
' buildtype=release' ,
10
- # TODO: Reactivate werror, some warnings on Windows
11
- #'werror=true',
12
10
' c_std=c99'
13
11
]
14
12
)
15
13
16
14
fs = import (' fs' )
17
- py = import (' python' ).find_installation()
15
+ py = import (' python' ).find_installation(pure : false )
18
16
tempita = files (' generate_pxi.py' )
19
17
versioneer = files (' generate_version.py' )
20
18
@@ -30,7 +28,7 @@ add_project_arguments('-DNPY_TARGET_VERSION=NPY_1_21_API_VERSION', language : 'c
30
28
31
29
32
30
if fs.exists(' _version_meson.py' )
33
- py.install_sources(' _version_meson.py' , pure : false , subdir : ' pandas' )
31
+ py.install_sources(' _version_meson.py' , subdir : ' pandas' )
34
32
else
35
33
custom_target (' write_version_file' ,
36
34
output : ' _version_meson.py' ,
40
38
build_by_default : true ,
41
39
build_always_stale : true ,
42
40
install : true ,
43
- install_dir : py.get_install_dir(pure : false ) / ' pandas'
41
+ install_dir : py.get_install_dir() / ' pandas'
44
42
)
45
43
meson .add_dist_script(py, versioneer, ' -o' , ' _version_meson.py' )
46
44
endif
47
45
48
46
# Needed by pandas.test() when it looks for the pytest ini options
49
- py.install_sources(' pyproject.toml' , pure : false , subdir : ' pandas' )
47
+ py.install_sources(
48
+ ' pyproject.toml' ,
49
+ subdir : ' pandas'
50
+ )
51
+
50
52
subdir (' pandas' )
0 commit comments