summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2016-01-25 09:55:00 +0100
committerMatthias Geier <Matthias.Geier@gmail.com>2016-01-25 09:55:00 +0100
commitc69fb5295bac3e31fdc435e5d5fefca688a9fd3c (patch)
treedd2b5cd3573f44ca066d9e80fb1510eba564af01 /setup.py
parenta092ff35ab25480b6e58ad599b9cfb908c07f147 (diff)
Check for _sounddevice_data directory in setup.py
Without this, a non-Linux build from the tarball will fail, see #16.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index bcf947c..da283ce 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ elif system == 'Windows':
else:
libname = None
-if libname:
+if libname and os.path.isdir('_sounddevice_data'):
packages = ['_sounddevice_data']
package_data = {'_sounddevice_data': [libname, 'README.md']}
else: