如何在Python中执行安装后包含SWIG生成的模块

时间:2013-12-18 18:40:24

标签: python swig distutils setup.py

Python setup documentation建议SWIG以下内容:

setup(...,
      ext_modules=[Extension('_foo', ['foo.i'],
                             swig_opts=['-modern', '-I../include'])],
      py_modules=['foo'],
     )

但是,生成的文件不会立即复制到路径中。有些人建议执行两次设置(因此模块已经生成)。 Others installing via scripts或继承install command。有没有好的做法来解决远程安装(集群)这个问题?

0 个答案:

没有答案
相关问题