summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/wavefile/libsndfile.py.patch
blob: 807221c48a3eb4264d6356be74f3b57676c81273 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/wavefile/libsndfile.py b/wavefile/libsndfile.py
index 89c670f..fa19e1d 100644
--- a/wavefile/libsndfile.py
+++ b/wavefile/libsndfile.py
@@ -17,20 +17,7 @@ import ctypes as ct
 import numpy as np
 
 def _libfilename():
-    for system, libname in [
-        ('win32', 'libsndfile-1'),
-        ('cygwin', 'libsndfile-1.dll'),
-        ('darwin', 'libsndfile.dylib'),
-        ('linux', 'libsndfile.so.1'),
-        ('freebsd', 'libsndfile.so.1'),
-        ('', 'libsndfile'),
-    ]:
-        if system in sys.platform:
-            return libname
-    raise Exception(
-        'No libsndfile dll name mapping for platform {}.'
-        .format(sys.platform)
-    )
+    return "@libsndfile@"
 
 dllName = _libfilename()
 _lib=None