shithub: aubio

Download patch

ref: c7d3c2aee99a17a8abbded2bcec177559ffded19
parent: ecf757280dd01eecc154415b56e60ae98b0f0fb9
author: Paul Brossier <[email protected]>
date: Thu Mar 23 12:34:13 EDT 2017

setup.py: clean up imports

--- a/python/lib/moresetuptools.py
+++ b/python/lib/moresetuptools.py
@@ -176,6 +176,7 @@
                 # add libaubio sources and look for optional deps with pkg-config
                 add_local_aubio_sources(extension, usedouble=enable_double)
         # generate files python/gen/*.c, python/gen/aubio-generated.h
+        extension.include_dirs += [ output_path ]
         extension.sources += generate_external(header, output_path, overwrite = False,
                 usedouble=enable_double)
         return _build_ext.build_extension(self, extension)
--- a/setup.py
+++ b/setup.py
@@ -2,9 +2,8 @@
 
 import sys, os.path, glob
 from setuptools import setup, Extension
-from python.lib.moresetuptools import *
+from python.lib.moresetuptools import build_ext, CleanGenerated
 # function to generate gen/*.{c,h}
-from python.lib.gen_external import generate_external, header, output_path
 from this_version import get_aubio_version, get_aubio_pyversion
 
 __version__ = get_aubio_version()
@@ -16,7 +15,6 @@
 extra_link_args = []
 
 include_dirs += [ 'python/ext' ]
-include_dirs += [ output_path ] # aubio-generated.h
 try:
     import numpy
     include_dirs += [ numpy.get_include() ]