From owner-freebsd-python@freebsd.org Mon Jan 4 15:26:16 2016 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 358DDA61760 for ; Mon, 4 Jan 2016 15:26:16 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0731AF8 for ; Mon, 4 Jan 2016 15:26:16 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 17CECA6175F; Mon, 4 Jan 2016 15:26:16 +0000 (UTC) Delivered-To: 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 17647A6175E for ; Mon, 4 Jan 2016 15:26:16 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (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 E20171AF7 for ; Mon, 4 Jan 2016 15:26:15 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x22c.google.com with SMTP id 65so158726939pff.3 for ; Mon, 04 Jan 2016 07:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=G17UYvvuC5sHX7YiGLQ9TsG7d/iBkVxZbU+wiXtwVMY=; b=JoUeBCuNUUC1dldF3+BzgO0f36+vFnkmTj9YjkkT9xVAsDF2Tm3iXskBVvnIBaTx4w 7CPLtGD/6MRAku7ar6zRWd0bQXOMMMMpPnWpOo1QOAuskoRp2/N/bRGsKAO7RGem/pkf 23kvc46yXrnGnXsbwmiKrdByDG0t8UkPtNMAzBE+nTOfyN+qtJdL3OWGs2yVYAqDyoAH Tsr0WVDGwAr0r51dgcsEEyl8SMLupVIZQbB5XQdBdLAFylTyLn/LiGs/s15ekbJQmPai FxnuMZMNM5zgHOOT/DoG+XEnRPzrKm/o84Ik1o4tzxlDcEde8TkvufEaORdZY2qLhCUt QSAQ== X-Received: by 10.98.43.79 with SMTP id r76mr127622899pfr.9.1451921175486; Mon, 04 Jan 2016 07:26:15 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01::4? (2001-44b8-31ae-7b01-0000-0000-0000-0004.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01::4]) by smtp.gmail.com with ESMTPSA id 85sm53981081pfi.18.2016.01.04.07.26.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 07:26:15 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: pkg-plist %%PYVER%%.%%PYOEXTENSION%% handling. patch included, feedback needed References: <1451920422.31882.24.camel@zoho.com> To: clutton , python From: Kubilay Kocak Message-ID: <568A8F12.2090006@FreeBSD.org> Date: Tue, 5 Jan 2016 02:26:10 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Thunderbird/43.0 MIME-Version: 1.0 In-Reply-To: <1451920422.31882.24.camel@zoho.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Mon, 04 Jan 2016 15:26:16 -0000 On 5/01/2016 2:13 AM, clutton wrote: > Hi list. > > As I can see there are two ways of doing pkg-plist routine. > > For pkg-plist which was made for python2 just including USE_PYTHON= > py3kplist would do the trick. > > For new python3 ports it's not so straight forward, and when they don't > use setup.py conventions people usually do something like this: > > .if ${PYTHON_REL} < 3500 > PYOEXTENSION= pyo > .else > PYOEXTENSION= opt-1.pyc > .endif > > PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \ > PYVER=${PYTHON_VER:S/.//} > > Currently an in-progress issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205807 https://reviews.freebsd.org/D4758