From 0e9187adfc4bc746da94cb06fc5fea01822e7c1c Mon Sep 17 00:00:00 2001 From: tgarc Date: Wed, 20 Sep 2017 16:17:54 -0500 Subject: switch to cffi out-of-line ABI mode switch to out of line mode to improve sounddevice module import time. this adds a separate sounddevice_build.py file that becomes part of the setup.py build process and is only run once at install time rather than everytime the module is imported --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9a2b175..9bfc759 100644 --- a/setup.py +++ b/setup.py @@ -71,8 +71,10 @@ setup( packages=packages, package_data=package_data, zip_safe=zip_safe, + setup_requires=["CFFI>=1.0"], install_requires=['CFFI>=1.0'], extras_require={'NumPy': ['NumPy']}, + cffi_modules=["sounddevice_build.py:ffibuilder"], author='Matthias Geier', author_email='Matthias.Geier@gmail.com', description='Play and Record Sound with Python', -- cgit v1.2.3