Date: Tue, 31 Mar 2015 21:39:37 +0200 From: David Naylor <dbn@freebsd.org> To: Roland Smith <rsmith@xs4all.nl> Cc: freebsd-python@freebsd.org Subject: Re: USE_PYTHON=concurrent Message-ID: <3956416.IomzSLxEPG@dragon.local> In-Reply-To: <20150331184738.GA95383@slackbox.erewhon.home> References: <3945228.UPHqZybedq@dragon.local> <20150331184738.GA95383@slackbox.erewhon.home>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3956416.IomzSLxEPG>