Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3650

Re: multiple Python 2.7 Windows installations

Return-Path <mhammond@skippinet.com.au>
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; 'subject:Python': 0.04; '2.7': 0.05; 'does.': 0.07; 'python': 0.07; 'subject:2.7': 0.09; 'looked': 0.10; 'somewhere': 0.11; 'am,': 0.14; 'extension': 0.14; 'wrote:': 0.14; '(ie,': 0.16; '*any*': 0.16; 'distutils': 0.16; 'from:addr:mhammond': 0.16; 'from:addr:skippinet.com.au': 0.16; 'from:name:mark hammond': 0.16; 'message-id:@skippinet.com.au': 0.16; 'modules),': 0.16; 'received:150.101': 0.16; 'received:150.101.137': 0.16; 'received:192.168.0.9': 0.16; 'received:internode.on.net': 0.16; 'received:on.net': 0.16; 'registry.': 0.16; 'unfamiliar': 0.16; 'windows?': 0.16; "wouldn't": 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python- list': 0.22; 'trying': 0.23; 'version.': 0.23; 'version': 0.25; 'assume': 0.25; 'installation': 0.25; 'windows': 0.26; 'tried': 0.27; 'looks': 0.28; 'installed': 0.29; 'subject:Windows': 0.29; 'seem': 0.30; 'cc:addr:python.org': 0.31; 'installer': 0.31; 'key,': 0.31; 'does': 0.31; 'entry': 0.32; 'another': 0.32; 'idea': 0.32; 'received:192': 0.34; 'received:192.168.0': 0.35; 'header:User-Agent:1': 0.35; 'recognize': 0.35; 'routine': 0.35; 'hello,': 0.36; 'received:au': 0.36; 'considered': 0.36; 'received:192.168': 0.37; 'else,': 0.38; 'eric': 0.38; 'install': 0.38; 'but': 0.38; 'pretty': 0.38; 'so,': 0.38; 'built': 0.39; 'listed': 0.39; 'could': 0.39; 'would': 0.40; 'ever': 0.65; 'studio': 0.72; 'offer': 0.72; '12:40': 0.84; '2.7.': 0.84; 'alien': 0.91
X-IronPort-Anti-Spam-Filtered true
X-IronPort-Anti-Spam-Result ApEBAAlbrk06oEGz/2dsb2JhbAANrxe9OYVxBA
Date Wed, 20 Apr 2011 14:14:52 +1000
From Mark Hammond <mhammond@skippinet.com.au>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
MIME-Version 1.0
To Eric Frederich <eric.frederich@gmail.com>
Subject Re: multiple Python 2.7 Windows installations
References <BANLkTin7-QYKNzideq3w-nOao+4ARFrRJQ@mail.gmail.com>
In-Reply-To <BANLkTin7-QYKNzideq3w-nOao+4ARFrRJQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
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.615.1303273244.9059.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 82.94.164.166
X-Trace 1303273244 news.xs4all.nl 81481 [::ffff:82.94.164.166]:51634
X-Complaints-To abuse@xs4all.nl
Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3650

Show key headers only | View raw


On 20/04/2011 12:40 AM, Eric Frederich wrote:
> Hello,
>
> I am trying to get an installer built with distutils to recognize
> multiple installations.
> The installer currently finds my installation at C:\Python27
> I have a custom Python27 built myself with Visual Studio sitting
> somewhere else, say C:\MyPython27.
>
> I looked at PC/bdist_wininst/install.c in the GetPythonVersions
> routine and see that it is searching Software\Python\PythonCore.
>
> So, I assume I need to get my Python installation listed in the registry.
> I am unfamiliar with the Windows Registry
> I tried to create another 2.7 key but regedit wouldn't let me.
> So, if I can only have one 2.7 key, it would seem that the routine
> GetPythonVersions will only ever get 1 version of 2.7.
> Does this mean that it is unsupported to have more than one Python 2.7
> installation on Windows?

Yes, it does.  Only 1 such installed version is considered "the" version 
- although you could just have something temporarily adjust the 
InstallPath entry in the registry.

> Again, that GetPythonVersions routine looks pretty alien to me.... so
> I may be wrong.

You have it right - although the idea is that if you have a "portable" 
package to install (ie, no C extension modules), that routine will offer 
to install it into *any* Python version.

Cheers,

Mark

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: multiple Python 2.7 Windows installations Mark Hammond <mhammond@skippinet.com.au> - 2011-04-20 14:14 +1000

csiph-web