Open
Description
Reproducible: #608
$ PYTHONPATH=../../.. python -m build -nw* Getting build dependencies for wheel...
* Getting build dependencies for wheel...
* Building wheel...
+ meson setup /home/anubis/git/mesonpy/tests/packages/python-data /home/anubis/git/mesonpy/tests/packages/python-data/.mesonpy-nc4ceydg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/home/anubis/git/mesonpy/tests/packages/python-data/.mesonpy-nc4ceydg/meson-python-native-file.ini
The Meson build system
Version: 1.4.0
Source dir: /home/anubis/git/mesonpy/tests/packages/python-data
Build dir: /home/anubis/git/mesonpy/tests/packages/python-data/.mesonpy-nc4ceydg
Build type: native build
Project name: python-data
Project version: 1.0.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/bin/python)
Build targets in project: 0
python-data 1.0.0
User defined options
Native files: /home/anubis/git/mesonpy/tests/packages/python-data/.mesonpy-nc4ceydg/meson-python-native-file.ini
buildtype : release
b_ndebug : if-release
b_vscrt : md
Found ninja-1.11.1 at /usr/bin/ninja
+ /usr/bin/ninja
ninja: no work to do.
meson-python: error: Could not map installation path to an equivalent wheel directory: '/usr/lib/python3.11/site-packages/python_data/data.txt'
ERROR Backend subprocess exited when trying to invoke build_wheel
install_data
here is just an example, I know I can use py.install_sources
, but that is not viable in various different scenarios. In my case, I ran into it when using import('pkgconfig').generate(..., install_dir: py.get_path('purelib') / ...)
.