Skip to content

typo in internal shared libraries docs? ERROR: Got unknown keyword arguments "install_path" #769

Open
@AndrewAnnex

Description

@AndrewAnnex

I am struggling with a seemingly common issue of bundling a shared library (for a pure c library I build via a subproject) in my python wheel (#765, #673, #410) .

While trying to follow the example at, https://mesonbuild.com/meson-python/how-to-guides/shared-libraries.html I get the following error ERROR: Got unknown keyword arguments "install_path" from meson when attempting to set that variable for the shared_library.

According to the meson docs, shared_library only accepts install_dir (https://mesonbuild.com/Reference-manual_functions.html#shared_library_install_dir)

Likely this line will need to be updated:

install_path: py.get_install_dir() / 'mypkg/subdir'

I want to confirm that my interpretation of a typo in the docs was correct or if install_path is meant to be used elsewhere and not with the shared_library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions