Showing the changes to python (2 of 3 files). Show all
Unified · Split
| @@ -174,7 +174,7 @@ def print_cpp_output_results(lib, cpp_output): · 173 unmodified lines | ||
| 174 | 174 | |
| 175 | 175 | def generate_external(header=header, output_path=output_path, usedouble=False, overwrite=True): |
| 176 | 176 | if not os.path.isdir(output_path): os.mkdir(output_path) |
| 177 | − elif not overwrite: return glob.glob(os.path.join(output_path, '*.c')) | |
| 177 | + elif not overwrite: return sorted(glob.glob(os.path.join(output_path, '*.c'))) | |
| 178 | 178 | |
| 179 | 179 | cpp_output, cpp_objects = get_cpp_objects(header) |
| 180 | 180 | |
| @@ -58,8 +58,8 @@ def add_local_aubio_sources(ext, usedouble = False): · 57 unmodified lines | ||
| 58 | 58 | # create an empty header, macros will be passed on the command line |
| 59 | 59 | fake_config_header = os.path.join('python', 'ext', 'config.h') |
| 60 | 60 | distutils.file_util.write_file(fake_config_header, "") |
| 61 | − aubio_sources = glob.glob(os.path.join('src', '**.c')) | |
| 62 | − aubio_sources += glob.glob(os.path.join('src', '*', '**.c')) | |
| 61 | + aubio_sources = sorted(glob.glob(os.path.join('src', '**.c'))) | |
| 62 | + aubio_sources += sorted(glob.glob(os.path.join('src', '*', '**.c'))) | |
| 63 | 63 | ext.sources += aubio_sources |
| 64 | 64 | # define macros (waf puts them in build/src/config.h) |
| 65 | 65 | for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H', |