fy
V2EX  ›  问与答

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

  •  
  •   fy · Nov 22, 2013 · 2911 views
    This topic created in 4649 days ago, the information mentioned may be changed or developed.
    今天想用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 replies    1970-01-01 08:00:00 +08:00
    min
        1
    min  
       Nov 22, 2013
    他意思不是挺明白的,你选了GPL,你弄出来的binding代码就得跟着一起GPL了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 03:50 · PVG 11:50 · LAX 20:50 · JFK 23:50
    ♥ Do have faith in what you're doing.