You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documented technique for internal shared libraries does not work under editable installs on Windows #940
The instructions for internal shared libraries on Windows do not work with editable installs. I think the problem is simply that, in an editable install, meson-python does not install the libraries to the .{package}.mesonpy.libs directory.
This could be fixed by either creating and installing such a directory during editable installs, or making their location in the build directory discoverable using importlib.resources in the generated _{package}_editable_loader.py file.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\a\editable_install_on_windows_with_internal_shared_libraries\editable_install_on_windows_with_internal_shared_libraries\src\example_project\__init__.py", line 40, in <module>
_append_to_sharedlib_load_path()
File "D:\a\editable_install_on_windows_with_internal_shared_libraries\editable_install_on_windows_with_internal_shared_libraries\src\example_project\__init__.py", line 35, in _append_to_sharedlib_load_path
os.add_dll_directory(subdir)
File "<frozen os>", line 1154, in add_dll_directory
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'D:\\a\\editable_install_on_windows_with_internal_shared_libraries\\editable_install_on_windows_with_internal_shared_libraries\\src\\example_project\\..\\.example_project.mesonpy.libs'
Activity
Comment out Windows editable tests
Comment out Windows editable tests
Test editable installs on all supported platforms (#1163)