Changeset ac971a51


Ignore:
Timestamp:
Nov 28, 2016, 3:48:34 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
3303f05
Parents:
f4d7240
Message:

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    rf4d7240 rac971a51  
    176176def generate_external(header=header, output_path=output_path, usedouble=False, overwrite=True):
    177177    if not os.path.isdir(output_path): os.mkdir(output_path)
    178     elif not overwrite: return glob.glob(os.path.join(output_path, '*.c'))
     178    elif not overwrite: return sorted(glob.glob(os.path.join(output_path, '*.c')))
    179179
    180180    cpp_output, cpp_objects = get_cpp_objects(header)
  • python/lib/moresetuptools.py

    rf4d7240 rac971a51  
    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

    rf4d7240 rac971a51  
    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.