From owner-freebsd-python@FreeBSD.ORG Tue Mar 31 19:39:43 2015 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F315177 for ; Tue, 31 Mar 2015 19:39:43 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (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 DFEC0AAB for ; Tue, 31 Mar 2015 19:39:42 +0000 (UTC) Received: by wgoe14 with SMTP id e14so30536120wgo.0 for ; Tue, 31 Mar 2015 12:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-type; bh=FYEAFSynCFYdhxIMjgb0rRmHxQp5sFxqyRuW46PD4UA=; b=zCPVuphPywwEc/UlGIqMAe6Nua8DIq82ywC7Y+qgNYZ/KT0NMuqLhcxQFzjgH35CGm nCB+dTsvAYbnrgmtmghd4fXRmOk+jKjMlzX8gMwTXcdgoiU88nSzEKy7J6zzwZC+Lc3a /mxcFtlCgmXdJiHxwtR1zCEQ68R58i042GgeAVCyRIh0IXgell+sVgcEiC9ZB3UvSmfW 9EY+ZWFA8ao40ZEjd1DxtHesbBmaXWZ6Un78l6kEPbwQOC1HdrSoFw6jtY1ZutTZDE4x RB8q5P7GQQSIyxOqYSEds+f+AGCwB3QyPYP30R+pcL9ndw9bL/vL5cfXq4iY8YisLMCm Nm0A== X-Received: by 10.194.9.98 with SMTP id y2mr78369596wja.85.1427830781391; Tue, 31 Mar 2015 12:39:41 -0700 (PDT) Received: from dragon.local ([197.87.118.143]) by mx.google.com with ESMTPSA id a10sm17381227wjy.0.2015.03.31.12.39.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 12:39:40 -0700 (PDT) Sender: David Naylor From: David Naylor To: Roland Smith Subject: Re: USE_PYTHON=concurrent Date: Tue, 31 Mar 2015 21:39:37 +0200 Message-ID: <3956416.IomzSLxEPG@dragon.local> Organization: FreeBSD User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p6; KDE/4.14.3; amd64; ; ) In-Reply-To: <20150331184738.GA95383@slackbox.erewhon.home> References: <3945228.UPHqZybedq@dragon.local> <20150331184738.GA95383@slackbox.erewhon.home> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8925149.eBNl2xgpJA"; micalg="pgp-sha512"; protocol="application/pgp-signature" Cc: freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2015 19:39:43 -0000 --nextPart8925149.eBNl2xgpJA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Tuesday, 31 March 2015 20:47:38 Roland Smith wrote: > On Mon, Mar 30, 2015 at 09:14:40PM +0200, David Naylor wrote: > > Hi, > >=20 > > I am investigating converting my ports to concurrent however I am n= ot sure > > how concurrent is supposed to work: > >=20 > > I looked in /usr/ports/Mk and only found a documentation reference = to > > 'concurrent'. Setting USE_PYTHON=3Dconcurrent doesn't appear to ac= tually > > change any behaviour. > >=20 > > Please could you explain this for me? >=20 > From =E2=80=9C/usr/ports/Mk/Uses/python.mk=E2=80=9D: >=20 > concurrent - Indicates that the port can be installed for > different python versions at the same time. The por= t > is supposed to use a unique prefix for certain > directories using USES=3Duniquefiles:dirs (see the > uniquefiles.mk Uses for details about the > directories), if set to yes. Binaries receive an > additional suffix, based on ${PYTHON_VER}. >=20 > The values for the uniquefiles USES are set as > follows: >=20 > UNIQUE_PREFIX=3D ${PYTHON_PKGNAMEPREFIX} > UNIQUE_SUFFIX=3D -${PYTHON_VER} >=20 > If the port is installed for the current default > python version, scripts and binaries in >=20 > ${PREFIX}/bin > ${PREFIX}/sbin > ${PREFIX}/libexec >=20 > are linked from the prefixed version to the > prefix-less original name, e.g. > bin/foo-2.7 --> bin/foo. >=20 > So it seems that any port that only installs modules in > =E2=80=9C/usr/local/lib/pythonX.Y/site-packages/=E2=80=9D could be la= beled as concurrent > as-is. >=20 > If your port wants to put things in DOCSDIR, EXAMPLESDIR, DATADIR, WW= WDIR or > ETCDIR, you should add =E2=80=9CUSES=3Duniquefiles:dirs=E2=80=9D to y= our port's Makefile. >=20 > Also read =E2=80=9C/usr/ports/Mk/Uses/uniquefiles.mk=E2=80=9D. Thank you for your explanation, to confirm: So 'concurrent' shouldn't actually change any logic, but act as a flag = for a=20 build tool at actually build multiple versions of the port based on ava= ilable=20 and supported python versions? (However one might need to use uniquefi= les to=20 prevent file conflicts with the multiple packages from this port.) =20 Regards --nextPart8925149.eBNl2xgpJA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAABCgBmBQJVGvf5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5NDhFQzUxMUEyN0YwMzAyRTc5OUI1M0FB RDYzRkE4REQ2QjJEQTU1AAoJEK1j+o3WstpVqpcQAKcSEvTuP9DV68h852Mc0oWi F0/PfvHe/Cu39G99+Gw9zLtUtdHW6zWh31CziRZLdnx0VfLq9asFR7pyR0ti1jTy FZp22bgLV8dqyDeFsdE6mxK6+GTtZ8HOfxsqeWF42xl7J/j4U5pK1YNn0I76o/UY pwMHJStA9VgbROVE+9/KkGdWCangIISXlo2cl6zM4CGfF2bZM/wlgOYdQcZR/Fd9 DEytviCfl5fEJ/u41773cSQCMFKxB/xGbuGUHlqhd5OyOrOg18xJkSszMS/abmDy Jhw9sB2GUut6VrmEJksju6Zti5ZcQOYyRzB9HuS3Idhbs+lb6h873iSY5XWBhm8c U142MvX24Y9DV7xSfJbY0fk68j9XjzxdCYb19hen8l27ILz3VpvYHCOoqTkG1wT/ 58mpQ/EazLXSiddpxDDmuxkUsF8QA3POLsYZObQ3pRM6jm/ViY9KF4xg7pK49H9Y N45chcUhLTmpQOdYv+4OnO403aLWIPpPhBEK2keNeavqoaEW59QwVmnu6H7aKs47 Dn+MTktGACySrIwOp61X+zy8/F86n+ndtNy+klLpaUzZGmIH2bkufms7U4bDb0Af ERbyZywRNWF3SBl2XbAiDbc9H7i6PynSrKwpcXREiUEHXurcYEPGEaPJv/+9zMHk M0LZ0C89qdJ9MDDp6YjY =MHR1 -----END PGP SIGNATURE----- --nextPart8925149.eBNl2xgpJA--