diff options
| -rw-r--r-- | command/build_ext.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/command/build_ext.py b/command/build_ext.py index 2d7cdf06..38bb8fd9 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -490,7 +490,8 @@ class build_ext(Command): "in 'ext_modules' option (extension '%s'), " "'sources' must be present and must be " "a list of source filenames" % ext.name) - sources = list(sources) + # sort to make the resulting .so file build reproducible + sources = sorted(sources) ext_path = self.get_ext_fullpath(ext.name) depends = sources + ext.depends |
