From owner-freebsd-python@freebsd.org Mon Jan 4 16:30:55 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 A130CA6212F for ; Mon, 4 Jan 2016 16:30:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 7604315B3 for ; Mon, 4 Jan 2016 16:30:55 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id e65so151557708pfe.1 for ; Mon, 04 Jan 2016 08:30:55 -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=4CY6T8u1IYmhFncEyDaTLHTB5qrnxuyz3abh9FNnj7Q=; b=L+b5rYI+4A/rWkgofwLSlu0H5e7XMbkqIclDYI3Kwf/k6kyF9r/5xpzehGKIWi/mvD aEaLqaitxiy0sY8ODh0rjglRTRI7hwaAx+Kg3ye7A0KO/skq3wO/MhPd/RDtuGz99rQz btVm949JSZ68XKY01krIjNJR4xQ0go42O7QQkK615EtOUepL8Yx86Ykg9OmuYkHglJmv uMptVbuwE/IC1XU8F5UeZCB+QLU/2mOcuiiV+D6ZLWK7WYWW2HPF/P6UbWP7bJUZ10MF Il70oBRr4KXcRMT02SZdiCl7QqomW6VNDYivYwz4+qn5aKTTY2Ao5dDyhdPsF7+KbHQT MUWA== X-Received: by 10.98.13.140 with SMTP id 12mr87403029pfn.27.1451925055080; Mon, 04 Jan 2016 08:30:55 -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 rz10sm127411094pac.29.2016.01.04.08.30.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 08:30:54 -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> <568A8F12.2090006@FreeBSD.org> <1451921751.31882.26.camel@zoho.com> <568A91BF.5080306@FreeBSD.org> <1451922616.31882.32.camel@zoho.com> To: clutton , freebsd-python@freebsd.org From: Kubilay Kocak Message-ID: <568A9E38.3000305@FreeBSD.org> Date: Tue, 5 Jan 2016 03:30:48 +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: <1451922616.31882.32.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 16:30:55 -0000 On 5/01/2016 2:50 AM, clutton wrote: > On Tue, 2016-01-05 at 02:37 +1100, Kubilay Kocak wrote: >> On 5/01/2016 2:35 AM, clutton wrote: >>> 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. >>> >> >> You're welcome, and feel free to add your thoughts/comments to that >> issue as well. >> >> ./koobs > > Only porters-handbook updating, as soon it'll be commited. Handbook > always goes behind ports tree and sometime it's hard to follow for > people who contribute occasionally. > That's the nature of a fast moving beast :) You're welcome to join us on IRC (#freebsd-python) freenode if you like, most of the FreeBSD/Python team is there, and there's always something happening :)