From owner-freebsd-python@FreeBSD.ORG Tue Mar 31 18:48:53 2015 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A25C55A5; Tue, 31 Mar 2015 18:48:53 +0000 (UTC) Received: from lb2-smtp-cloud2.xs4all.net (lb2-smtp-cloud2.xs4all.net [194.109.24.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B6F224B; Tue, 31 Mar 2015 18:48:52 +0000 (UTC) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud2.xs4all.net with ESMTP id AJnc1q00307iGuj01Jndhk; Tue, 31 Mar 2015 20:47:37 +0200 Received: by slackbox.erewhon.home (Postfix, from userid 1001) id 18B9112418; Tue, 31 Mar 2015 20:47:38 +0200 (CEST) Date: Tue, 31 Mar 2015 20:47:38 +0200 From: Roland Smith To: David Naylor Subject: Re: USE_PYTHON=concurrent Message-ID: <20150331184738.GA95383@slackbox.erewhon.home> Mail-Followup-To: David Naylor , freebsd-python@freebsd.org References: <3945228.UPHqZybedq@dragon.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <3945228.UPHqZybedq@dragon.local> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) 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 18:48:53 -0000 --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 not 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 actually > change any behaviour. >=20 > Please could you explain this for me? =46rom =E2=80=9C/usr/ports/Mk/Uses/python.mk=E2=80=9D: concurrent - Indicates that the port can be installed for different python versions at the same time. The port 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}. The values for the uniquefiles USES are set as follows: UNIQUE_PREFIX=3D ${PYTHON_PKGNAMEPREFIX} UNIQUE_SUFFIX=3D -${PYTHON_VER} If the port is installed for the current default python version, scripts and binaries in ${PREFIX}/bin ${PREFIX}/sbin ${PREFIX}/libexec are linked from the prefixed version to the prefix-less original name, e.g. bin/foo-2.7 --> bin/foo. 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 labeled = as concurrent as-is. If your port wants to put things in DOCSDIR, EXAMPLESDIR, DATADIR, WWWDIR or ETCDIR, you should add =E2=80=9CUSES=3Duniquefiles:dirs=E2=80=9D to your po= rt's Makefile. Also read =E2=80=9C/usr/ports/Mk/Uses/uniquefiles.mk=E2=80=9D. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVGuvJAAoJEED21dyjijPgWIAQALmz3fRetmOaufplHxv1JTo7 kIsTdf3Ka+qqTp1M2vPdj9KyQVMtp6CWRzq24marqdogYOxN+YnBI1n58VfEgEx2 bQMimW1ZIq1mTIe7DMwQXVobslSdBsCCcwcvhKmfmql8dGYRA2twLwDpBQw655Vf zfVNqtbsYEIemcwYfNAj7NPwCOllqt5jFVmm9ITkhmIaJaoZycMNVExZa6YLXuh8 e0vZn4svJV95Rtxo+NL146kjLNmchN3lb1xReXvoJRD7t5DLRBhlVJIeZ7hp8dUN id8QY0VYVu/tV+ngEQ7cSFttxFdkhfSRUsYAs12UCPLpE6r93O3OnZ8R4Xd8PZWl TA9OqZtj/38IjCgne/Nj4hDJJdryQl3Zg5U2SmbcZhSkm4sBBXECu2FDOgZ+4Rby tQj6S8GcLnLYZuCVL8FqN4lk6cfe9Ek6d3b5uSfB1dMevDlYTDd5Yavt19RzemAK EeOpe7KEVi/IirMcYfcIyq5RVyeaBnbsZoNxZUNl4fOkafmTkkTYyAWGGKpsLvDU 679ixnkQ7ZzD17O2n9mVxAI0H8YAIxAVCMsXgFVoNh8phE1YWJLtl6DW7E96xzqh jzcdYfJfAw9oSIpuWuDf3wJQZlk1wuPfsFsWWgER+yhxdKP9hRLqAMYBdVG9USGF qhbQRwWgjXhsjG83NYD3 =oBgY -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--