Skip to content

Commit 4bb9e7e

Browse files
authored
DOC: shared-libraries: fix and clarify install location example
Fixes #769
1 parent 1d51aaa commit 4bb9e7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/how-to-guides/shared-libraries.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,16 @@ A shared library produced by ``library()`` or ``shared_library()`` built like th
6464
6565
is installed to ``libdir`` by default. If the only reason the shared library exists
6666
is to be used inside the Python package being built, then it is best to modify
67-
the install location, via the `install_dir` argument, to be within the Python package itself:
67+
the install location, via the ``install_dir`` argument, to be within
68+
the Python package itself:
6869

6970
.. code-block:: meson
7071
7172
example_lib = shared_library(
7273
'example',
7374
'examplelib.c',
7475
install: true,
75-
install_dir: py.get_install_dir() / 'mypkg/subdir',
76+
install_dir: py3.get_install_dir() / 'mypkg/subdir',
7677
)
7778
7879
Then an extension module in the same install directory can link against the

0 commit comments

Comments
 (0)