From owner-freebsd-python@freebsd.org Mon Jan 4 15:37:41 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 A3333A61BF2 for ; Mon, 4 Jan 2016 15:37:41 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (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 796231360 for ; Mon, 4 Jan 2016 15:37:41 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pa0-x235.google.com with SMTP id yy13so106439342pab.3 for ; Mon, 04 Jan 2016 07:37:41 -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=XCdpSwWGe+d+ZV1Mj7xdizp2OcTnm4lRiNiSXndP4oQ=; b=cjDXpAJAsJemMJH/eocmv4wmIGPQYROqe2fxrqU8V2Go2Y+H/+NmZQ+onWplhbXFjP rmSx2Xm8aVzBwL4szXeU/we4oA7f3K4zBb3OEmJpp99kIXdFwSdmKh585BUSo5yH1803 6q6f00rW8Ece91LTb48TB9AB2zn6+1QpB2Hz92sZ5hEajdnwB4NRx4rMyh9+GDj6Rb6k BcsWVq917cEhMX2zOv6KwGEwr7TetbHDQa9m7JniW02wTKhkACirBqMXU7lTjFnOEL6n 8cnbBQAYzNkf15ttIKQcnebnCjygJWac9hsDzGObft5a+qNFzP2cBEypfyGv5Hzvf1t3 Ibpg== X-Received: by 10.66.100.163 with SMTP id ez3mr127953823pab.5.1451921861117; Mon, 04 Jan 2016 07:37:41 -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 n64sm121916249pfi.19.2016.01.04.07.37.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jan 2016 07:37:40 -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> To: clutton , freebsd-python@freebsd.org From: Kubilay Kocak Message-ID: <568A91BF.5080306@FreeBSD.org> Date: Tue, 5 Jan 2016 02:37:35 +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: <1451921751.31882.26.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:37:41 -0000 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