Skip to content

Commit 5aa44a9

Browse files
authored
attempt to fix trailing whitespace, correct py3 to py
1 parent 4bb9e7e commit 5aa44a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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
67+
the install location, via the ``install_dir`` argument, to be within
6868
the Python package itself:
6969

7070
.. code-block:: meson
@@ -73,15 +73,15 @@ the Python package itself:
7373
'example',
7474
'examplelib.c',
7575
install: true,
76-
install_dir: py3.get_install_dir() / 'mypkg/subdir',
76+
install_dir: py.get_install_dir() / 'mypkg/subdir',
7777
)
7878
7979
Then an extension module in the same install directory can link against the
8080
shared library in a portable manner by using ``install_rpath``:
8181

8282
.. code-block:: meson
8383
84-
py3.extension_module('_extmodule',
84+
py.extension_module('_extmodule',
8585
'_extmodule.c',
8686
link_with: example_lib,
8787
install: true,

0 commit comments

Comments
 (0)