From owner-freebsd-python@freebsd.org Mon Jan 4 15:36:06 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 048AEA61B22 for ; Mon, 4 Jan 2016 15:36:06 +0000 (UTC) (envelope-from clutton@zoho.com) Received: from sender153-mail.zoho.com (sender153-mail.zoho.com [74.201.84.153]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7EC711A9 for ; Mon, 4 Jan 2016 15:36:05 +0000 (UTC) (envelope-from clutton@zoho.com) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=message-id:subject:from:to:date:in-reply-to:references:content-type:mime-version; b=AQnIKa+K6srHcxHvO+Qf81+W/20KNlXVwnLQk/boO2oAwp9VbrE83Bky/M4ThwZIJ+m0LMUOdKlb DAWh7Zg+1V2LgFcLbQfKWN07bkTM4AA/q4n66Sn+IumkTJ6uEPIX Received: from [192.168.11.5] (mktechs.net [46.229.54.117]) by mx.zohomail.com with SMTPS id 1451921763423443.72275931574586; Mon, 4 Jan 2016 07:36:03 -0800 (PST) Message-ID: <1451921751.31882.26.camel@zoho.com> Subject: Re: pkg-plist %%PYVER%%.%%PYOEXTENSION%% handling. patch included, feedback needed From: clutton To: freebsd-python@freebsd.org Date: Mon, 04 Jan 2016 17:35:51 +0200 In-Reply-To: <568A8F12.2090006@FreeBSD.org> References: <1451920422.31882.24.camel@zoho.com> <568A8F12.2090006@FreeBSD.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Zoho-Virus-Status: 1 X-ZohoMail: Ss SS_10 UW UB UW UB ODL SGR3_1_0_21125_363 X-ZohoMail-Owner: <1451921751.31882.26.camel@zoho.com>+zmo_0_ X-ZohoMail-Sender: 46.229.54.117 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:36:06 -0000 On Tue, 2016-01-05 at 02:26 +1100, Kubilay Kocak wrote: > 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: I see. The name convention and approach are even better then my. Thank you.