From owner-freebsd-python@FreeBSD.ORG Thu Jan 24 07:18:20 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1BF7C27D for ; Thu, 24 Jan 2013 07:18:20 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx1.freebsd.org (Postfix) with ESMTP id 9B72CAAF for ; Thu, 24 Jan 2013 07:18:18 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id gf7so5878489lbb.4 for ; Wed, 23 Jan 2013 23:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=pH0/RYb0NVP2r92RK/bsvTnHW02guqEwA+m5widAXDQ=; b=ZL8BR8bSeLuFQm2mSk3tGPr+k9Gygnk3pIn4T+Y9f4/5qsVlVVcZrmrd3mKHtO60si azFB+mBe6UVzpzPhQns/xDhlWavxjnK0r9StvK8dP6XjU7yLb1kiH5ybcr9sXgRB1+Xr 4+V6iIFS9gK4z2nTwVF2b6Ngtyz+DXufumOgUMlEN3tR1BoXcSiznrp1NMzChsM9NB5T 7dJwdQZlslStOYqqQ3ESbXsxe+2uaWq0fvrObAWuvOvBhfR6MVCvi7RdRZ78gFwVAsck n/cjZkYOLJ1VgpJPHyQrIrRM6Y2k98X8HGLIfRdrSwVMceF8IuR1VDQemjf6ynvWCbow UnAA== X-Received: by 10.152.145.37 with SMTP id sr5mr859992lab.33.1359011897546; Wed, 23 Jan 2013 23:18:17 -0800 (PST) Received: from [10.0.1.20] (ip-95-221-81-145.bb.netbynet.ru. [95.221.81.145]) by mx.google.com with ESMTPS id q4sm9194938lbj.15.2013.01.23.23.18.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 23:18:15 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: bsd.python.mk: python3 plist shim From: Dmitry Sivachenko In-Reply-To: <50FFD7C0.9060208@yandex.ru> Date: Thu, 24 Jan 2013 11:18:13 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <50FFD7C0.9060208@yandex.ru> To: Ruslan Makhmatkhanov X-Mailer: Apple Mail (2.1499) Cc: python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 07:18:20 -0000 On 23.01.2013, at 16:29, Ruslan Makhmatkhanov wrote: >=20 > Hello, >=20 > I'm planning to apply this patch to Mk/bsd.python.mk soon. It's an = nivit's solution from devel/py-virtualenv for changes, introduced in PEP = 3147 [1]. It will not affect default packages build, because packages = are not yet building for python3 on cluster, but it will affect python = ports, built with python3, that already has fix like that applied = locally. I tested it with dozen of ports and everything seems fine. = Local fixes will be removed right after this change. Please tell me if = there is any objections or suggestions on this. Thanks. >=20 > [1] http://www.python.org/dev/peps/pep-3147/ >=20 Hello! Looks like a hack. Why not to define some variable, say PYCACHEDIR, to = proper value based on python version, and use in in pkg-plist as = %%PYCACHEDIR%% ? Similar to all other version-dependend things like PYTHON_SITELIBDIR? This will require modification of pkg-plist files but this can be done = automatically by a script.