From owner-freebsd-python@freebsd.org Sat Dec 5 17:54:22 2015 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9F98A4179C; Sat, 5 Dec 2015 17:54:22 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9535F181A; Sat, 5 Dec 2015 17:54:22 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by igvg19 with SMTP id g19so55745262igv.1; Sat, 05 Dec 2015 09:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=6zPq0yh5HTMJGULOhGmpwB/tgHG6KDTekcEupLZCXgw=; b=CwOpE4LHXmFoDjiBIYbN0wCZjcfnVZ1HKhGO6qRQs4F44obx3VMmTCkWyOYg4MmzxP /ahAoAKNctlVn34bUy5nLFWOgd2f19dJx6uMYQqHt37TV0EAUp1hxKiVedGRxCABpXp2 no17HghWaddKAaSKoHfx+Q4E2f0BWAo6dUR408JaP6QtmyUQpA9VJinrojGq4DevVVeM pkOc8uDvLVcPH8exvLKJMeP3bZYyFJlI141SMDI+bCiYTUqnIFz0Bk1HExClDJMNe+Gm NnoATMd0GLgpTS1KKDT7CHITpnMYyPkRQuhov/8aXLgBTLC03phXryAMeOIqHzCaFuiW KO3A== MIME-Version: 1.0 X-Received: by 10.50.36.74 with SMTP id o10mr8845748igj.73.1449338061799; Sat, 05 Dec 2015 09:54:21 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.50.152.69 with HTTP; Sat, 5 Dec 2015 09:54:21 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Dec 2015 09:54:21 -0800 X-Google-Sender-Auth: De0O1siwmUuTIFRpV7Bdpfdve9w Message-ID: Subject: Re: Python and SWIG support in ports? From: Craig Rodrigues To: ports , freebsd-python@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 17:54:23 -0000 On Fri, Dec 4, 2015 at 2:40 PM, Craig Rodrigues 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