Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37959
| 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 | <vinay_sajip@yahoo.co.uk> |
| 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 <vinay_sajip@yahoo.co.uk> |
| Subject | A new script which creates Python 3.3 venvs with Distribute and pip installed in them |
| To | "python-list@python.org" <python-list@python.org>, "distutils-sig@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 <vinay_sajip@yahoo.co.uk> |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1227.1359576549.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
Python 3.3 includes a script, pyvenv, which is used to create virtual environments. However, Distribute and pip are not installed in such environments - because, though they are popular, they are third-party packages - not part of Python. The Python 3.3 venv machinery allows customisation of virtual environments fairly readily. To demonstrate how to do this, and to provide at the same time a script which might be useful to people, I've created a script, pyvenvex.py, at https://gist.github.com/4673395 which 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, and one way to use it is: 1. Download the script to a directory in your path, and (on Posix platforms) make it executable. 2. 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). 3. Run the pyvenvex script to create your virtual environments, 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. Regards, Vinay Sajip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
A new script which creates Python 3.3 venvs with Distribute and pip installed in them Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2013-01-30 20:09 +0000
csiph-web