Skip to content

Commit a95f4ea

Browse files
committed
DOC: Disable searching for PortAudio when building docs
1 parent 9bd46dc commit a95f4ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/fake__sounddevice.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
"""Mock module for Sphinx autodoc."""
22

33

4+
import ctypes
5+
6+
7+
# Monkey-patch ctypes to disable searching for PortAudio
8+
ctypes.util.find_library = lambda _: NotImplemented
9+
10+
411
class ffi(object):
512

613
NULL = NotImplemented

0 commit comments

Comments
 (0)