Skip to content

Commit 765dbac

Browse files
committed
python-soundfile: add 'license_notes.md' to wheel
Fixes: #470 python-soundfile links dynamically against libsndfile, which is a statically-linked library including its dependencies. Modify setup.py to include a new license_notes.md file containing licensing details for each of libsndfile's dependencies. Signed-off-by: Trevor Gamblin <[email protected]>
1 parent 5069b8c commit 765dbac

File tree

2 files changed

+100
-2
lines changed

2 files changed

+100
-2
lines changed

licensing/license_notes.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# license notes
2+
3+
The canonical python-soundfile repository is located [here](https://github.com/bastibe/python-soundfile).
4+
5+
While python-soundfile itself is licensed under the
6+
[BSD-3-Clause](https://opensource.org/license/bsd-3-clause) license, it links
7+
against media libraries that are licensed under a mixture of LGPL and BSD
8+
licenses within [libsndfile](https://github.com/libsndfile/libsndfile). To help
9+
ensure compliance for each of these libraries, copyrights and links to the
10+
corresponding source code are included below.
11+
12+
## libflac
13+
14+
Copyright: 1994-2013, Free Software Foundation, Inc
15+
2000-2009, Josh Coalson
16+
2011-2025, Xiph.Org Foundation http://www.xiph.org/
17+
18+
License: BSD-3-Clause
19+
20+
Source: [here](https://github.com/xiph/flac)
21+
22+
Note: FLAC is GFDL-1.3, GPL-2.0, LGPL-2.1, and BSD-3-Clause licensed for
23+
different components. We are only using the libFLAC component, which is
24+
BSD-3-Clause.
25+
26+
## libmp3lame
27+
28+
Copyright: 1998, Michael Cheng
29+
1999-2001, Mark Taylor
30+
1999-2002, Albert L. Faber
31+
1999-2005, Takehiro Tominaga
32+
1999-2007, The LAME Project
33+
2000-2005, Alexander Leidinger
34+
2000-2005, Elecard Ltd.
35+
2000-2005, Gabriel Bouvigne
36+
2000-2005, Marie Orlova
37+
2000-2005, Peter Gubanov
38+
2000-2005, Vitaly Ivanov
39+
2000-2008, Gabriel Bouvigne
40+
2000-2008, Robert Hegemann
41+
2000, Don Melton
42+
2000, Frank Klemm
43+
2001-2002, Naoki Shibata
44+
2001, John Dahlstrom
45+
2001, Jonathan Dee
46+
2001, Ralf Kempkens
47+
2002, Per Bolmstedt
48+
2003, Olcios
49+
50+
License: LGPL-2+
51+
52+
Source: [here](https://sourceforge.net/p/lame/svn/HEAD/tree/)
53+
54+
## libmpg123
55+
56+
Copyright:
57+
1995-2025 by the mpg123 project
58+
2008 Christian Weisgerber <[email protected]>
59+
2006-2007 by Zuxy Meng
60+
2000-2002 David Olofson
61+
1998 Fabrice Bellard
62+
1997 Mikko Tommila
63+
64+
License: LGPL-2.1
65+
66+
Source: [here](https://www.mpg123.de/trunk/)
67+
68+
## libogg
69+
70+
Copyright: 1994-2025, the Xiph.Org Foundation http://www.xiph.org/
71+
72+
License: BSD-3-Clause
73+
74+
Source: [here](https://github.com/xiph/ogg)
75+
76+
## libopus
77+
78+
Copyright: 1994-2025, the Xiph.Org Foundation http://www.xiph.org/
79+
2001-2018, Skype Limited
80+
2001-2018, Octasic
81+
2001-2018, Jean-Marc Valin
82+
2001-2018, Timothy B. Terriberry
83+
2001-2018, CSIRO
84+
2001-2018, Gregory Maxwell
85+
2001-2018, Mark Borgerding
86+
2001-2018, Erik de Castro Lopo
87+
88+
License: BSD-3-Clause
89+
90+
Source: [here](https://github.com/xiph/opus)
91+
92+
## libvorbis
93+
94+
Copyright (C) 2002-2025 Xiph.Org Foundation
95+
96+
License: BSD-3-Clause
97+
98+
Source: [here](https://github.com/xiph/vorbis)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
libname = None
2626

2727
if libname and os.path.isdir('_soundfile_data'):
28-
packages = ['_soundfile_data']
29-
package_data = {'_soundfile_data': [libname, 'COPYING']}
28+
packages = ['_soundfile_data', 'licensing']
29+
package_data = {'_soundfile_data': [libname, 'COPYING'], 'licensing': ['license_notes.md']}
3030
zip_safe = False
3131
else:
3232
packages = None

0 commit comments

Comments
 (0)