Changeset 61e9d99


Ignore:
Timestamp:
Nov 1, 2018, 1:08:50 AM (10 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.