V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fy
V2EX  ›  问与答

求英语大神拯救:SIP和SWIG所生成的代码应该遵循什么协议??

  •  
  •   fy · 2013-11-22 19:28:25 +08:00 · 2382 次点击
    这是一个创建于 3874 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今天想用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也是个挺常见的干这活的选择,它在这一点是什么样的呢?
    1 条回复    1970-01-01 08:00:00 +08:00
    min
        1
    min  
       2013-11-22 23:41:22 +08:00
    他意思不是挺明白的,你选了GPL,你弄出来的binding代码就得跟着一起GPL了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   963 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:34 · PVG 04:34 · LAX 13:34 · JFK 16:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.