Installing extension into project-specific directory #662
-
I searched for this in other discussions but could not find an answer: I am writing an application that includes a C extension and a shared library internal to the project. I would like to install those in a project-specific directory: However, when I run the editable build with ...
meson-python: error: Could not map installation path to an equivalent wheel directory: '{python.platlibdir}/myproject/lib/libproject_shared_lib.so'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details. First, I am not sure what it actually means and, second, what is the correct way to specify custom install paths? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You should use python = import('python').find_installation()
library(...
install_dir = pythin.get_install_dir(pure: false) / 'myproject/lib'
) However, I'm not sure doing this results in the RPATH for the Python extension module that depends on this library to be set correctly. |
Beta Was this translation helpful? Give feedback.
You should use
However, I'm not sure doing this results in the RPATH for the Python extension module that depends on this library to be set correctly.