今天想用python-sip来生成C++代码的绑定,注意到了这个问题。
SIP是个生成代码的程序,那生成的代码应该遵循啥协议?
官方文档是这么说的:
SIP is licensed under similar terms as Python itself. SIP is also licensed under the GPL (both v2 and v3). It is your choice as to which license you use. If you choose the GPL then any bindings you create must be distributed under the terms of the GPL.
SIP有三个可选协议:python的协议,GPLv2、GPLv3。如果你用GPL协议那么你生成的binding也必须是基于GPL协议。
===============
话说这老外是啥意思啊?GPL时候管binding的协议,不是GPL就随意?还是我会错意了?
然后我去翻了一下它本身的LICENSE,比较长,不过在下英文水平捉鸡,只能来求助了:
https://github.com/tagged/sip/blob/master/LICENSE另外SWIG也是个挺常见的干这活的选择,它在这一点是什么样的呢?