Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pyffi/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@
# ***** END LICENSE BLOCK *****

import os
from distutils.cmd import Command
try:
from distutils.cmd import Command
except ImportError:
# distutils was removed from the standard library in Python 3.12.
# BuildDoc below is only used by setup.py's Sphinx doc-build command,
# which isn't relevant to normal (non-packaging) use of pyffi, so we
# fall back to a plain object rather than fail the whole import.
Command = object


class BuildDoc(Command): # pragma: no cover
Expand Down