Changeset 2e40231


Ignore:
Timestamp:
Nov 28, 2016, 3:48:47 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
bab8e3d
Parents:
3820264
git-author:
Paul Brossier <piem@piem.org> (11/28/16 15:48:34)
git-committer:
Paul Brossier <piem@piem.org> (11/28/16 15:48:47)
Message:

setup.py, python/lib/: use sorted glob.glob to improve reproducibility

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    r3820264 r2e40231  
    175175def generate_external(header=header, output_path=output_path, usedouble=False, overwrite=True):
    176176    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')))
    178178
    179179    cpp_output, cpp_objects = get_cpp_objects(header)
  • python/lib/moresetuptools.py

    r3820264 r2e40231  
    5959    fake_config_header = os.path.join('python', 'ext', 'config.h')
    6060    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')))
    6363    ext.sources += aubio_sources
    6464    # define macros (waf puts them in build/src/config.h)
  • setup.py

    r3820264 r2e40231  
    3838    extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
    3939
    40 sources = glob.glob(os.path.join('python', 'ext', '*.c'))
     40sources = sorted(glob.glob(os.path.join('python', 'ext', '*.c')))
    4141
    4242aubio_extension = Extension("aubio._aubio",
Note: See TracChangeset for help on using the changeset viewer.