Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; 'backwards': 0.09; 'edward': 0.09; 'obey': 0.09; 'subject:same': 0.09; 'url:peps': 0.09; 'windows,': 0.09; 'cc:addr :python-list': 0.10; 'yet.': 0.13; 'properly': 0.15; '3.3,': 0.16; 'binaries': 0.16; 'complicated,': 0.16; 'elsewhere,': 0.16; 'entries,': 0.16; 'invoked,': 0.16; 'invoking': 0.16; 'registry': 0.16; 'sources,': 0.16; 'wrote:': 0.17; 'directory.': 0.17; 'url:dev': 0.17; 'version.': 0.17; '>>>': 0.18; 'windows': 0.19; 'versions': 0.20; 'trying': 0.21; '2.x': 0.22; '3.2': 0.22; '3.x': 0.22; 'lets': 0.22; 'os,': 0.22; 'stick': 0.22; 'installed': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'allows': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'possibly': 0.27; 'andrew': 0.27; 'decide': 0.28; 'run': 0.28; 'finds': 0.29; 'install': 0.29; 'compatible': 0.30; 'url:python': 0.32; 'file': 0.32; 'launch': 0.32; 'says': 0.33; 'problem': 0.33; 'version': 0.34; "can't": 0.34; 'whatever': 0.35; 'pm,': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; 'should': 0.36; 'problems': 0.36; 'does': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'release': 0.39; 'received:192': 0.39; 'build': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'latest': 0.61; 'situation': 0.62; 'solve': 0.62; 'between': 0.63; 'series': 0.63; 'more': 0.63; 'choose': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'hoping': 0.72; 'confusing': 0.84; 'received:74.208.4.194': 0.84; 'end-user': 0.91 Date: Sun, 30 Sep 2012 23:55:05 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: eldiener@tropicsoft.com Subject: Re: Coexistence of Python 2.x and 3.x on same OS References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Q4R9sufglpoB3Vz5vc/kwJJJlE4jRoJNg0GrovBhr9K 89d/hKkbuz4EEl/6fsvBdvm8LAFwmhg9GbwDEvplxCaP/RlfDQ Fns/mcY4TlqVNHEDMI7uVETceda1TH37KzLrzj9ThziR90VdvO IZ808pcxNbY84xiZke9sC4N8vddcm+LTR38uqt7vGl2F74hEgK KNhWd55mUfYZokbe/wfhriRP/yDQ7h0H7z6v1epc/zRrbrr8Ep ZwX5XcQLvtIqHXochowLCqHL/VhOejSvdzJ3XtFc55SR9JEhyy rU+DPCKrdhJXP133xWBkzpkaQjWcF3PxOFY0j3rCMnFW6EtQA= = Cc: Edward Diener , python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349063742 news.xs4all.nl 6854 [2001:888:2000:d::a6]:42595 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30592 On 09/30/2012 11:06 PM, Edward Diener wrote: > On 9/30/2012 3:38 PM, Andrew Berg wrote: >> On 2012.09.30 14:14, Edward Diener wrote: >>> The situation is so confusing on Windows, where the file associations, >>> registry entries, and other internal software which allows a given >>> Python release to work properly when invoking Python is so complicated, >>> that I have given up on trying to install more than one Python release >>> and finding a relaible, foolproof way of switching between them. So >>> although I would like to use the latest 3.x series on Windows I have >>> decide to stick with the latest 2.x series instead because much >>> software >>> using Python does not support 3.x yet. >> >> http://www.python.org/dev/peps/pep-0397/ >> >> Unix-based OSes should already obey the shebang line, and on Windows, >> there's py.exe in 3.3 that will launch the intended version based on >> that shebang line. > > The problem with that is that one has to already being using 3.3 to > use this facility. I was hoping for a solution which was backwards > compatible with Python 2.x. > > My thought is a program distributed by Python which finds the versions > of Python on an OS, lets the end-user choose which version should be > invoked when Python is invoked, and does whatever is necessary to make > that version the default version. > >> While I was using the alpha/beta versions of 3.3, I >> had no problems invoking either 3.2 or 3.3 with the shebang line on >> Windows. > > That does not solve the problem for Python 2.x distributions. > If you read the Pep, it says the launcher will work for both 2.x and 3.x http://www.python.org/dev/peps/pep-0397/ I've read that elsewhere, but I can't see just where you would get the necessary modules to run it with 2.x Possibly you'd have to build it from sources, as there are Windows binaries that get installed to the C:\Windows directory. -- DaveA