diff --git a/setup/build.py b/setup/build.py index 9c50975b3a..f5a521192c 100644 --- a/setup/build.py +++ b/setup/build.py @@ -88,7 +88,7 @@ def expand_file_list(items, is_paths=True): ans.extend(expand_file_list(item, is_paths=is_paths)) else: if '*' in item: - ans.extend(expand_file_list(glob.glob(os.path.join(SRC, item)), is_paths=is_paths)) + ans.extend(expand_file_list(sorted(glob.glob(os.path.join(SRC, item))), is_paths=is_paths)) else: item = [item] if is_paths: