Open
Description
This issue is somewhat similar to #233, but different.
I had the following problem: I tried to configure an __init__.py
file and install it into a subdirectory of the python install_dir using the pymod.get_install_dir function:
pymod = import('python').find_installation(pure: false)
configure_file(input : '__init__.py',
output : '__init__.py',
configuration : conf_data,
install_dir : pymod.get_install_dir() + 'some_subdirectory/',
)
This works with meson, but from meson-python I get an error: "Could not map installation path to an equivalent wheel directory: ...". The problem seems to be the "+ 'some_subdirectory/'" because the solution is to put the subdirectory name INTO the get_install_dir command using the subdir keyword_argument:
pymod = import('python').find_installation(pure: false)
configure_file(input : '__init__.py',
output : '__init__.py',
configuration : conf_data,
install_dir : pymod.get_install_dir(subdir: 'some_subdirectory'),
)
I think this behavior should be documented.
If you tell me where to add this, I can create a pull request.