BackgroundMy own project is a module for Python (without GUI, so this answer does not fully apply). Its licensed with a three-clause BSD license which resides in a separate file (say License), and only there.In this project, I want to use code from NumPys randomkit.h and randomkit.c, which is modified and strongly reduced for my specific needs. This is the only external code in my project and it resides in its own file (say random.c).License of the employed codeThe Randomkit files contains the following in its license/copyright statement:An MIT license as the main license (extended by the following), stating amongst others:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.Quoted as the license for parts is a the three-clause BSD license, stating amongst others:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.Also included are some further acknowledgements which are part of the copyright notice mentioned by the MIT license.I didnt compare those word by word.Actual questionWhich are valid or best-practice ways to mention those licenses? I can think of the following (in order of increasing obnoxiousness):Add Randomkits license to random.c mentioning my own modifications and add a sentence to License along the lines of:The file random.c is based on NumPys Randomkit; see that file for its copyright and license.Add Randomkits license to License; add a sentence to random.c along the lines of:This file is based on NumPys Randomkit. See the file License for its copyright and license.Add Randomkits license to both, random.c and License.
Valid locations for propagated MIT/BSD licenses?
mit;bsd;license file