Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'interpreter': 0.04; 'subject:Python': 0.05; 'python': 0.09; 'path,': 0.09; 'pep': 0.09; 'script,': 0.09; 'subject:script': 0.09; 'url:github': 0.09; 'sfxlen:2': 0.10; '3.3,': 0.16; 'executable.': 0.16; 'posix': 0.16; 'subject:3.3': 0.16; 'subject:which': 0.16; 'windows).': 0.16; 'script.': 0.17; 'windows': 0.19; 'to:name:python-list@python.org': 0.20; 'fairly': 0.21; 'people,': 0.21; '(on': 0.22; 'environments': 0.22; 'extends': 0.22; 'demonstrate': 0.23; 'sets': 0.23; 'third-party': 0.23; 'installed': 0.23; 'to:2**1': 0.23; "i've": 0.23; '(this': 0.24; 'command': 0.24; 'script': 0.24; 'allows': 0.25; 'options': 0.27; 'run': 0.28; 'install': 0.29; 'distribute': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'to:addr:python-list': 0.33; 'add': 0.36; 'created': 0.36; 'but': 0.36; 'useful': 0.36; 'subject:with': 0.36; 'virtual': 0.37; 'to:addr:python.org': 0.39; 'your': 0.60; 'received:77.238.189': 0.62; 'received:bullet.mail.ird.yahoo.com': 0.62; 'provide': 0.62; 'header:Reply-To:1': 0.68 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 461480.69378.bm@omp1013.mail.ird.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1359576541; bh=7bxcaYYTAlaAx/IyUj6VHTRA+eUEc1AguOQOMEcLUXM=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=soxe6gAOSltgWe/IGOzlM3zfvo8muTDGQdKHqzUG8to4ulraHhRWHC04Bu+sFl1SG61h047xnIyJXFRgDwDaLIwoLigSlK+cHRklaBH7d0gdFU0dnTABRuijC3AJSdJ3+Fz/b1LFOwA/ANs3FD+ipIpd0ei5bVWuwHVB3AdDg14= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=p95B10HICIHTnxw80W9HjvXu9ev3m6K2DK+YgFcaEIB4Rd1jAZM+yL7o9+kkZ1qEsY0uLRUbxvz+16GZdtP5vNmHVDC/Az1nBICSbwvz1UNwqHMKo4QbDw7RmhmrTRBczGjpYuO/7n+2rq50rY49Eg1WKgKQhQBOdnIcJ5bQpuo= ; X-YMail-OSG: 4pVC5HgVM1lNMXZCyAA4hYsiz491s.LIbL1o6cf1sDWAkhd NmXvn6qn51j2ZWcvcl4QB94cXP_pKXCUum1NT8Rvjbj_D5ZWh.BtuSNM65Zn zoJ.nsTLGjztN_LXkAwFpo.ay.U68L32LJfJ6nuDjUgqacx5xpf7e.8eoAK5 b5uBZUJHSFh8i9l5FBOYEJyhwJEia1uiIikRENKHlu.abRuourCYUPQ4ofdM Z8JOgoKQWW6doDy8gX846l9.iGuTzqmbXh559zJd8B2VhWqVYxIEiNNMElkB dd5WUmFFcpHs28CoFB8IG.tjcMTRFLnZxgLygnywB9sO_HookP76e7Q2jYRP gxfHXb79Ri2CyIPkj0jSUGbwz4GS3EZT.RKzTNxgzAJDLBeGxxmCKECWtL_7 e1_r3.PFtx7d3cwlq63JrHqoVJCuEUZAasQx3cOmmnLGXp9StS5os2hbVuY4 _sR2W9s3er2DDh98KKH.80iTeOpex18VVdmlfY6BZsVaZe.HbSc9x3d0AJWZ 9jSIZPSvhrtB1OhRhWUPxvZGkVq1_59qmsw3wp7jFmt.wY09tbcbWi8Ro.Ik m3_reiFdm3wB7A0zwdlWQmboAeCM- X-Rocket-MIMEInfo: 001.001, UHl0aG9uIDMuMyBpbmNsdWRlcyBhIHNjcmlwdCwgcHl2ZW52LCB3aGljaCBpcyB1c2VkIHRvIGNyZWF0ZSB2aXJ0dWFsIGVudmlyb25tZW50cy4gSG93ZXZlciwgRGlzdHJpYnV0ZSBhbmQgcGlwIGFyZSBub3QgaW5zdGFsbGVkIGluIHN1Y2ggZW52aXJvbm1lbnRzIC0gYmVjYXVzZSwgdGhvdWdoIHRoZXkgYXJlIHBvcHVsYXIsIHRoZXkgYXJlIHRoaXJkLXBhcnR5IHBhY2thZ2VzIC0gbm90IHBhcnQgb2YgUHl0aG9uLgoKVGhlIFB5dGhvbiAzLjMgdmVudiBtYWNoaW5lcnkgYWxsb3dzIGN1c3RvbWlzYXRpb24BMAEBAQE- X-Mailer: YahooMailWebService/0.8.131.499 Date: Wed, 30 Jan 2013 20:09:01 +0000 (GMT) From: Vinay Sajip Subject: A new script which creates Python 3.3 venvs with Distribute and pip installed in them To: "python-list@python.org" , "distutils-sig@python.org" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Vinay Sajip List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359576549 news.xs4all.nl 6841 [2001:888:2000:d::a6]:34040 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37959 Python 3.3 includes a script, pyvenv, which is used to create virtual envir= onments. However, Distribute and pip are not installed in such environments= - because, though they are popular, they are third-party packages - not pa= rt of Python.=0A=0AThe Python 3.3 venv machinery allows customisation of vi= rtual environments fairly readily. To demonstrate how to do this, and to pr= ovide at the same time a script which might be useful to people, I've creat= ed a script, pyvenvex.py, at=0A=0Ahttps://gist.github.com/4673395=0A=0Awhic= h extends the pyvenv script to not only create virtual environments, but to= also install Distribute and pip into them. The script needs Python 3.3, an= d one way to use it is:=0A=0A1. Download the script to a directory in your = path, and (on Posix platforms) make it executable.=0A2. Add a shebang line = at the top of your script, pointing to your Python 3.3 interpreter (Posix, = and also Windows if you have the PEP 397 launcher which is part of Python 3= .3 on Windows).=0A3. Run the pyvenvex script to create your virtual environ= ments, in place of pyvenv, when you want Distribute and pip to be installed= for you (this is how virtualenv sets up environments it creates). You can = run the script with -h to see the command line options available, which are= a superset of the pyvenv script.=0A=0ARegards,=0A=0AVinay Sajip