File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,18 @@ Nanobind's CMake tooling includes a convenience command to interface with the
492492 generation. Otherwise, generator expressions should not be used.
493493 Optional.
494494
495+ * - ``LIB_PATH ``
496+ - List of search paths that should be considered when searching for
497+ shared libraries. This can be useful when the Python module being
498+ imported depends on shared libraries that are not in the default
499+ search path. On Windows, these directories are added to the DLL search
500+ path using ``os.add_dll_directory() ``. On Linux, the paths are
501+ prepended to the ``LD_LIBRARY_PATH `` environment variable (on macOS,
502+ to ``DYLD_LIBRARY_PATH ``). The paths are relative to
503+ ``CMAKE_CURRENT_BINARY_DIR `` for build-time stub generation and
504+ relative to ``CMAKE_INSTALL_PREFIX `` for install-time stub
505+ generation. Optional.
506+
495507 * - ``DEPENDS ``
496508 - Any targets listed here will be marked as a dependencies. This should
497509 generally be used to list the target names of one or more prior
Original file line number Diff line number Diff line change @@ -539,8 +539,9 @@ The program has the following command line options:
539539
540540.. code-block :: text
541541
542- usage: python -m nanobind.stubgen [-h] [-o FILE] [-O PATH] [-i PATH] [-m MODULE]
543- [-r] [-M FILE] [-P] [-D] [--exclude-values] [-q]
542+ usage: python -m nanobind.stubgen [-h] [-o FILE] [-O PATH] [-i PATH]
543+ [-L PATH] [-m MODULE] [-r] [-M FILE] [-P]
544+ [-D] [--exclude-values] [-q]
544545
545546 Generate stubs for nanobind-based extensions.
546547
@@ -550,6 +551,8 @@ The program has the following command line options:
550551 -O PATH, --output-dir PATH write generated stubs to the specified directory
551552 -i PATH, --import PATH add the directory to the Python import path (can
552553 specify multiple times)
554+ -L PATH, --lib-path PATH add directory to shared library search path (can
555+ specify multiple times)
553556 -m MODULE, --module MODULE generate a stub for the specified module (can
554557 specify multiple times)
555558 -r, --recursive recursively process submodules
You can’t perform that action at this time.
0 commit comments