Changeset 61e9d99 for python/lib


Ignore:
Timestamp:
Nov 1, 2018, 1:08:50 AM (6 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
Children:
fedb139
Parents:
2410f57a
Message:

[py] simplify import in gen_external.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    r2410f57a r61e9d99  
    44import subprocess
    55import glob
     6from distutils.sysconfig import customize_compiler
     7from gen_code import MappedObject
    68
    79header = os.path.join('src', 'aubio.h')
     
    5052def get_preprocessor():
    5153    # findout which compiler to use
    52     from distutils.sysconfig import customize_compiler
    5354    compiler_name = distutils.ccompiler.get_default_compiler()
    5455    compiler = distutils.ccompiler.new_compiler(compiler=compiler_name)
     
    263264
    264265    sources_list = []
    265     try:
    266         from .gen_code import MappedObject
    267     except (SystemError, ValueError):
    268         from gen_code import MappedObject
    269266    for o in lib:
    270267        out = source_header
Note: See TracChangeset for help on using the changeset viewer.