-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Description
This script is causing issues when run through uv:
nanobind/cmake/darwin-python-path.py
Lines 10 to 15 in 879bca4
import ctypes | |
dyld = ctypes.cdll.LoadLibrary('/usr/lib/system/libdyld.dylib') | |
namelen = ctypes.c_ulong(1024) | |
name = ctypes.create_string_buffer(b'\000', namelen.value) | |
dyld._NSGetExecutablePath(ctypes.byref(name), ctypes.byref(namelen)) | |
print(name.value.decode('utf8').strip()) |
It's basically returning nothing. This is causing nanobind_resolve_python_path()
to produce an error when running nanobind through uv build
under macOS.
> uv run --no-project python <nanobind>/cmake/darwin-python-path.py
Metadata
Metadata
Assignees
Labels
No labels