File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ version = '@VCS_TAG@'
Original file line number Diff line number Diff line change @@ -138,6 +138,23 @@ typing_sources = [
138
138
py3.install_sources(python_sources, typing_sources,
139
139
subdir : ' matplotlib' )
140
140
141
+ fs = import (' fs' )
142
+ if fs.exists(' _version.py' )
143
+ py3.install_sources(' _version.py' , subdir : ' matplotlib' )
144
+ else
145
+ cfg = configuration_data ()
146
+ cfg.set_quoted(' VCS_TAG' , meson .project_version())
147
+ # version_py_gen = find_program('version-py-gen.py')
148
+ configure_file (
149
+ input : ' _version.py.in' , output : ' _version.py' ,
150
+ configuration : cfg,
151
+ # command: [version_py_gen, ...],
152
+ install : true ,
153
+ install_tag : ' python-runtime' ,
154
+ install_dir : py3.get_install_dir() / ' matplotlib' )
155
+ # meson.add_dist_script(version_py_gen, ...)
156
+ endif
157
+
141
158
subdir (' _api' )
142
159
subdir (' axes' )
143
160
subdir (' backends' )
You can’t perform that action at this time.
0 commit comments