summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authortgarc <toemossgarcia@gmail.com>2017-09-20 16:17:54 -0500
committertdos.apone <toemossgarcia@gmail.com>2017-10-14 14:12:23 -0500
commit0e9187adfc4bc746da94cb06fc5fea01822e7c1c (patch)
treec04a7e6f451334f3bc746e4ea6cf73e5e106899f /setup.py
parent132e924f5edeaa8ca128ba8ae97ea0371d334e3d (diff)
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
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
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',