Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Carl Meyer Newsgroups: comp.lang.python Subject: Re: Python 3 virtualenvs Date: Mon, 30 Nov 2015 10:28:46 -0700 Lines: 63 Message-ID: References: <1mekmrs.1xn5n6010b7a1xN%real-not-anti-spam-address@apple-juice.co.uk> <1mem3lu.1327fd91org8tkN%real-not-anti-spam-address@apple-juice.co.uk> <8737vp0zh9.fsf@metapensiero.it> <201511291412.tATECKN8006265@fido.openend.se> <565C7A1B.2070202@oddbird.net> <201511301720.tAUHKlAe017071@fido.openend.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0GVPalvv4HfsrmRgcwTTCDkKv1rXomAB1" X-Trace: news.uni-berlin.de OY9pB/fdyLMA4B4g1dK5PAaKLY2BB9GWj88F/4TGeT/A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'pypy': 0.07; 'cc:addr:python-list': 0.09; 'creighton': 0.09; 'python': 0.10; 'interpreter': 0.15; 'filename:fname piece:signature': 0.16; 'from:addr:carl': 0.16; 'received:173.255': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'system-wide': 0.16; 'wrote:': 0.16; 'laura': 0.18; '>>>': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'meant': 0.22; 'either.': 0.22; 'environments': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; '(or': 0.23; 'nearly': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'installed': 0.26; '(which': 0.26; '2.6': 0.27; 'transition': 0.27; '-0700,': 0.29; 'that.': 0.30; 'you?': 0.30; 'another': 0.32; 'maybe': 0.33; 'gives': 0.35; 'trouble': 0.35; 'nov': 0.35; "isn't": 0.35; 'but': 0.36; 'should': 0.36; '(and': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'received:org': 0.37; "won't": 0.38; 'anything': 0.38; 'mean': 0.38; 'sure': 0.39; 'does': 0.39; 'where': 0.40; "you'll": 0.61; 'hope': 0.61; 'reach': 0.61; 'charset:windows-1252': 0.62; 'different': 0.63; 'situation': 0.67; 'yourself': 0.73; 'hood': 0.84; 'isolated': 0.84; 'meyer': 0.84 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <201511301720.tAUHKlAe017071@fido.openend.se> X-Spam-Status: No (score -1.0): ALL_TRUSTED=-1 X-Spam-Bar: - X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99748 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0GVPalvv4HfsrmRgcwTTCDkKv1rXomAB1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/30/2015 10:20 AM, Laura Creighton wrote: > In a message of Mon, 30 Nov 2015 09:32:27 -0700, Carl Meyer writes: >>> I think it is only meant to be used by people who want to install >>> packages but not site-wide, but I am not sure about that. >> >> I don't know what you mean by this either. Isn't the ability to "insta= ll >> packages but not site-wide" precisely what virtualenv (and venv) give = you? >=20 > I rarely use it for that. What I nearly always want is different > python interpreters. CPython, PyPy, Jython for anything from 2.6 to > 3.6. If you just want the variety of interpreters, virtualenv doesn't give you that -- you have to already have a given interpreter installed system-wide for virtualenv to be able to use it. What virtualenv gives you is isolated environments for package installations (which can use any interpreter you have installed). Venv does the same (and won't have any trouble with PyPy or Jython either, once they reach Python 3.3 compatibility). So I agree that for now you should be sticking with virtualenv (I use it too), but I hope you'll take another look at venv a few years down the road, if you find yourself in a situation where all the interpreters you need are 3.3+. (Or maybe virtualenv will make the transition sooner, and you'll start using venv under the hood for 3.3+ without even realizing it.) Carl --0GVPalvv4HfsrmRgcwTTCDkKv1rXomAB1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCAAGBQJWXIdRAAoJEC0ft5FqUuEhfP8QAIam0ADeB7nwmlKQ5OhuGUzo +OWW0g2E/dBX4GUuMk48x/BJHBiVe1ilrlFDqduud2whCeOe7MyALdtq9l5ejx4X T4sf5aAVGdBGgqNya1Uv2YJhpwLWZQ8GwEcJKT+XB+EVMZ9tBJv64xR9pbRqCrXi FjmS1rRPwoOq3Zk7KBe2R07auvWzHypeSGmTbCMDTn1Fnj6EDon6I2IODaNgs2Pg s8IDlqPl1d8A5bqYiD3tCFD17Phcyc8c/Fr4ZpqtBvS0n+7AvRfDJ88159Bs2V2k psVJ0uFZSZIQt3msopFUanLglRPZrWmxmCg195bOif94SKr29ebObWMGgAiacfHx mWT9mBHuIG/SyJ4mQ/sAMz3MZQvhsuDoBAs3WYR3bKebB0GRiJcDLdsTCdZPuYF5 Im86uLYVl62Mq1lgttCEbBWVELTTlFnedPQgyhhC2DvXMW6qRfsZpPgagRN9o9F2 3CV77RF5tr/mLMBVrHk8Wi2ImTVN4XNj/H6a1TloR7r6dTd3cmd136xU434Jgsjc L0IZ7MtZDfdESczT61dIinOXmWDx+/XmwC31n5y+GIxp+Q1sQYY2igseRxty6M+0 bAMyqTF8qgEYIAoeUWEdE3hMoS1eNqBYPdMi1RUsdPmWQhioWGdX/sFv/MK+QT+w b0zJn2s0Aifw7UnjMrjN =W2nU -----END PGP SIGNATURE----- --0GVPalvv4HfsrmRgcwTTCDkKv1rXomAB1--