Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewDaggitt committed Nov 26, 2024
1 parent f6f6747 commit 58f698d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vehicle-python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ def build_extension(self, ext: setuptools.Extension) -> None:

# Taken from distutils:
# https://github.com/pypa/distutils/blob/4435cec31b8eb5712aa8bf993bea3f07051c24d8/distutils/command/build_ext.py#L504-L513
if ext.sources is None or not isinstance(ext.sources, (list, tuple)):
sources = ext.sources.copy()
if sources is None or not isinstance(sources, (list, tuple)):
raise distutils.errors.DistutilsSetupError(
"in 'ext_modules' option (extension '%s'), "
"'sources' must be present and must be "
"a list of source filenames" % ext.name
)
# sort to make the resulting .so file build reproducible
sources = ext.sources.copy().sort()
sources.sort()

# First, scan the sources for SWIG definition files (.i), run
# SWIG on 'em to create .c files, and modify the sources list
Expand Down

0 comments on commit 58f698d

Please sign in to comment.