summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2017-11-17 12:49:22 +0100
committerMatthias Geier <Matthias.Geier@gmail.com>2017-11-17 13:06:32 +0100
commit2f8bc04032a355f04488f5c9e91f80f073564a40 (patch)
tree9af89074d3a11d374e6b7b663c3d7071c46f4c19 /setup.py
parente25524cd32c4205c7cf86a967c9f63b332c9f3bb (diff)
Move portaudio-binaries submodule
... in order to be able to properly import _sounddevice_data, even on Python 2.x
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 7af08ee..37d645a 100644
--- a/setup.py
+++ b/setup.py
@@ -33,9 +33,10 @@ elif system == 'Windows':
else:
libname = None
-if libname and os.path.isdir('_sounddevice_data'):
+if libname and os.path.isdir('_sounddevice_data/portaudio-binaries'):
packages = ['_sounddevice_data']
- package_data = {'_sounddevice_data': [libname, 'README.md']}
+ package_data = {'_sounddevice_data': ['portaudio-binaries/' + libname,
+ 'portaudio-binaries/README.md']}
package_dir['_sounddevice_data'] = '_sounddevice_data'
zip_safe = False
else: