shithub: aubio

Download patch

ref: 2410f57abba7b61c883824567bd034e723e3d574
parent: 7a54b37160fa859f8decb918aebbea14dec4c31b
author: Paul Brossier <piem@piem.org>
date: Wed Oct 31 21:04:07 EDT 2018

[py] remove empty init files

--- a/python/lib/moresetuptools.py
+++ b/python/lib/moresetuptools.py
@@ -2,7 +2,7 @@
 #
 import sys, os, glob, subprocess
 import distutils, distutils.command.clean, distutils.dir_util
-from .gen_external import generate_external, header, output_path
+from gen_external import generate_external, header, output_path
 
 from this_version import get_aubio_version
 
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,11 @@
 
 import sys, os.path, glob
 from setuptools import setup, Extension
-from python.lib.moresetuptools import build_ext, CleanGenerated
+
+# add ./python/lib to current path
+sys.path.append(os.path.join('python', 'lib'))
+from moresetuptools import build_ext, CleanGenerated
+
 # function to generate gen/*.{c,h}
 from this_version import get_aubio_version, get_aubio_pyversion