From owner-freebsd-python@freebsd.org  Tue Feb  2 05:22:04 2016
Return-Path: <owner-freebsd-python@freebsd.org>
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 B81F7A972FB
 for <freebsd-python@mailman.ysv.freebsd.org>;
 Tue,  2 Feb 2016 05:22:04 +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 8E1872E2
 for <freebsd-python@freebsd.org>; Tue,  2 Feb 2016 05:22:04 +0000 (UTC)
 (envelope-from koobs.freebsd@gmail.com)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 8EDB7A972F7; Tue,  2 Feb 2016 05:22:04 +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 74A1AA972F5;
 Tue,  2 Feb 2016 05:22:04 +0000 (UTC)
 (envelope-from koobs.freebsd@gmail.com)
Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com
 [IPv6:2607:f8b0:400e:c03::229])
 (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 40498214;
 Tue,  2 Feb 2016 05:22:04 +0000 (UTC)
 (envelope-from koobs.freebsd@gmail.com)
Received: by mail-pa0-x229.google.com with SMTP id cy9so94849151pac.0;
 Mon, 01 Feb 2016 21:22:04 -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=K7khDEb3Y/MCv/in7/GhFirSOxmg5ujvMysrle16ZLA=;
 b=EFwU0cKr7zSTKQRkfFNlBfol5Rn1bfHgoVsEsIOyLgoiLfq1lrEREo6FB8X1YAqPM2
 xvcXQoqxdCdqlJCOUK9GOEOBAh4s/OZn4OiV1yIVDLgI76wZzlgn5ZgWQbhXOtbEQdmH
 Z+Qiev5qos7QAkJwobIuZ0Cfe4MyIgkwvpkGr6k9CirFJFc2rqJTBh7xnuTpAp2qOxVn
 5iZR6pjQRhem5TNHcf8zW7mSVWnQxroxrIdSsnVTvONKyX8zIGirDXRoHZi0Lkh5pbXy
 tHXUzjoDrUcfdxs+yLLPe5/86rt1fxOWJWe9EJjEGjlDg5AkOdqPlARZwXTXYKr6jS93
 oV0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:reply-to:subject:references:to:from
 :message-id:date:user-agent:mime-version:in-reply-to:content-type
 :content-transfer-encoding;
 bh=K7khDEb3Y/MCv/in7/GhFirSOxmg5ujvMysrle16ZLA=;
 b=ETUqNx56iwZJNX3c1prDCL1VHp7O8+8dPOh06k/gPFoWNnZMIgFSrxJG0xgOWIEsrJ
 OZLtZHHghWTyp7sanrKaeWPzAC9Lz6a8jzC5eI8HTkpLfgwzxY9USUXOcvZBJVs3i1U/
 7tmyJuoYv74Efb5bd7JikrIoQxjuHTuseEkMvwP6963DbwUNcIkBn4YMLhASxJAwEoYn
 G8dvbvGc7wosgvZ8N9H85VEK8hnFyB6ntBDGZ3TldpiDdW1UMXCyttDynN/UDQudLbdG
 hqcAB565v1FjUbL8d9PoW6nGESjyloxj3vXy8PrppMYtoKmr/koqmPMAzWcANmIEf1oQ
 jBCg==
X-Gm-Message-State: AG10YORjXFPrgQY7cf81nPJDnd7/WeP9IqCcH4zBJKGY8wMiTHNMQCYFSasEulkzM0EkbA==
X-Received: by 10.66.120.200 with SMTP id le8mr44651107pab.61.1454390523716;
 Mon, 01 Feb 2016 21:22:03 -0800 (PST)
Received: from ?IPv6:2001:44b8:31ae:7b01:4c01:5dfa:1e09:7219?
 (2001-44b8-31ae-7b01-4c01-5dfa-1e09-7219.static.ipv6.internode.on.net.
 [2001:44b8:31ae:7b01:4c01:5dfa:1e09:7219])
 by smtp.gmail.com with ESMTPSA id q20sm21206558pfa.70.2016.02.01.21.22.01
 (version=TLSv1/SSLv3 cipher=OTHER);
 Mon, 01 Feb 2016 21:22:03 -0800 (PST)
Sender: Kubilay Kocak <koobs.freebsd@gmail.com>
Reply-To: koobs@FreeBSD.org
Subject: Re: svn commit: r407751 - head/security/py-m2crypto
References: <201602011948.u11JmPqj003525@repo.freebsd.org>
To: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>,
 ports-committers@freebsd.org, svn-ports-all@freebsd.org,
 svn-ports-head@freebsd.org, python <python@FreeBSD.org>
From: Kubilay Kocak <koobs@FreeBSD.org>
Message-ID: <56B03CF4.4070200@FreeBSD.org>
Date: Tue, 2 Feb 2016 16:21:56 +1100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101
 Thunderbird/44.0
MIME-Version: 1.0
In-Reply-To: <201602011948.u11JmPqj003525@repo.freebsd.org>
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 <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Feb 2016 05:22:04 -0000

On 2/02/2016 6:48 AM, Sunpoet Po-Chuan Hsieh wrote:
> +		%%PYTHON_SITELIBDIR%%/M2Crypto/${PYCACHE_DIR}${PYCACHE_FILE}.pyc \
> +		%%PYTHON_SITELIBDIR%%/M2Crypto/${PYCACHE_DIR}${PYCACHE_FILE}.${PYOEXTENSION}

Hi Sunpoet,

This change wasn't mentioned in the commit log. Could you summarise the
rationale?

Was it to fix a bug?
Might/Do other ports need to do this too?
Might there be value in having the framework bits take care of this?

Reason I ask is, as we move toward reproducible builds and simplifying
Python packaging, having the framework take care of compilation
post-install (rather than in packaging) is a desirable target for
various reasons.

We also have an open task not to package pyc/pyo files:

https://wiki.freebsd.org/Python

[ ] Don't package (plist) or install .pyc and .pyo files. Details:

https://wiki.freebsd.org/Python/CompiledPackages