Changeset b1d37c0 for setup.py


Ignore:
Timestamp:
May 15, 2016, 10:51:35 PM (9 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, pitchshift, sampler, timestretch, yinfft+
Children:
1772630
Parents:
ca89d9f
Message:

setup.py: only generate source files in build_ext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rca89d9f rb1d37c0  
    5454
    5555
    56 # generate files if they don't exit
    57 aubio_extension.sources += generate_external(header, output_path, overwrite = False)
    58 
    5956classifiers = [
    6057    'Development Status :: 4 - Beta',
     
    7168    'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
    7269    ]
     70
     71from distutils.command.build_ext import build_ext as _build_ext
     72class build_ext(_build_ext):
     73
     74    def build_extension(self, extension):
     75        # generate files python/gen/*.c, python/gen/aubio-generated.h
     76        extension.sources += generate_external(header, output_path, overwrite = False)
     77        return _build_ext.build_extension(self, extension)
    7378
    7479distrib = setup(name='aubio',
     
    9297        'clean': CleanGenerated,
    9398        'generate': GenerateCommand,
     99        'build_ext': build_ext,
    94100        },
    95101    test_suite = 'nose2.collector.collector',
Note: See TracChangeset for help on using the changeset viewer.