22project (
33 ' pandas' ,
44 ' 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(),
66 license : ' BSD-3' ,
77 meson_version : ' >=1.0.1' ,
88 default_options : [
99 ' buildtype=release' ,
10- # TODO: Reactivate werror, some warnings on Windows
11- #'werror=true',
1210 ' c_std=c99'
1311 ]
1412)
1513
1614fs = import (' fs' )
17- py = import (' python' ).find_installation()
15+ py = import (' python' ).find_installation(pure : false )
1816tempita = files (' generate_pxi.py' )
1917versioneer = files (' generate_version.py' )
2018
@@ -30,7 +28,7 @@ add_project_arguments('-DNPY_TARGET_VERSION=NPY_1_21_API_VERSION', language : 'c
3028
3129
3230if 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' )
3432else
3533 custom_target (' write_version_file' ,
3634 output : ' _version_meson.py' ,
4038 build_by_default : true ,
4139 build_always_stale : true ,
4240 install : true ,
43- install_dir : py.get_install_dir(pure : false ) / ' pandas'
41+ install_dir : py.get_install_dir() / ' pandas'
4442 )
4543 meson .add_dist_script(py, versioneer, ' -o' , ' _version_meson.py' )
4644endif
4745
4846# 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+
5052subdir (' pandas' )
0 commit comments