1--- numpy/core/meson.build.orig	2024-02-05 21:17:48 UTC
2+++ numpy/core/meson.build
3@@ -621,6 +621,23 @@ src_ufunc_api = custom_target('__ufunc_api',
4   install_dir: np_dir / 'core/include/numpy'
5 )
6
7+# Write out pkg-config file
8+# -------------------------
9+
10+# Note: we can't use Meson's built-in pkgconfig module, because we have to
11+# install numpy.pc within site-packages rather than in its normal location.
12+cdata_numpy_pc = configuration_data()
13+cdata_numpy_pc.set('version', meson.project_version())
14+
15+# Note: keep install path in sync with numpy/_configtool.py
16+_numpy_pc = configure_file(
17+  input: 'numpy.pc.in',
18+  output: 'numpy.pc',
19+  configuration: cdata_numpy_pc,
20+  install: true,
21+  install_dir: np_dir / 'core/lib/pkgconfig',
22+  install_tag: 'devel'
23+)
24
25 # Set common build flags for C and C++ code
26 # -----------------------------------------
27