Python and SWIG support in ports?

Craig Rodrigues rodrigc at FreeBSD.org
Sat Dec 5 17:54:23 UTC 2015


On Fri, Dec 4, 2015 at 2:40 PM, Craig Rodrigues <rodrigc at freebsd.org> wrote:

> Hi,
>
> I am working with the upstream maintainer of M2Crypto (
> https://gitlab.com/m2crypto/m2crypto ).
>
> In the distutils that comes with Python, the swig binary is harcoded
> to "swig" if on a POSIX system:
>
>
> https://hg.python.org/cpython/file/v2.6.2/Lib/distutils/command/build_ext.py#l635
>
>
OK, so after reading this e-mail:
https://mail.python.org/pipermail/distutils-sig/2004-October/004204.html

I see that it is possible to override the value of "swig" by doing:

python setup.py build_ext --swig=swig2.0

I tried that for M2Crypto and it works.

Is that what the existing Python ports with SWIG are doing?

--
Craig


More information about the freebsd-ports mailing list