Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19758
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <skippy.hammond@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; ':-)': 0.06; 'bits': 0.07; 'forcing': 0.07; 'python': 0.08; 'correct.': 0.09; 'distutils': 0.09; 'indications': 0.09; 'msi': 0.09; 'variations': 0.09; 'am,': 0.12; 'entries': 0.15; 'cc:addr:python- list': 0.15; '(note:': 0.16; '.py': 0.16; 'cleanly': 0.16; 'from:name:mark hammond': 0.16; 'install.': 0.16; 'installer,': 0.16; 'received:192.168.0.9': 0.16; 'reply-to:addr:mhammond': 0.16; 'reply-to:addr:skippinet.com.au': 0.16; 'subject:set': 0.16; 'wrote:': 0.16; 'subject:Windows': 0.17; 'endless': 0.18; '(which': 0.19; 'seems': 0.19; 'trying': 0.20; "haven't": 0.20; 'cc:no real name:2**0': 0.21; "doesn't": 0.22; 'assume': 0.22; 'header:In-Reply-To:1': 0.22; 'changed': 0.23; 'fine': 0.24; 'settings': 0.24; 'cc:2**0': 0.25; 'windows': 0.26; 'expect': 0.26; 'paul': 0.27; "i'm": 0.27; 'source,': 0.28; 'cc:addr:python.org': 0.29; 'exist.': 0.30; 'installer': 0.30; 'use?': 0.30; "i've": 0.31; 'ideal': 0.32; 'requests': 0.32; 'idea': 0.32; "can't": 0.32; "isn't": 0.32; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'there': 0.33; 'match': 0.33; 'someone': 0.34; 'setting': 0.34; 'anything': 0.34; 'puts': 0.34; 'then.': 0.34; 'changing': 0.34; 'received:209.85.160.46': 0.35; 'received:mail- pw0-f46.google.com': 0.35; 'question': 0.35; 'project': 0.35; 'install': 0.35; 'received:209.85.160': 0.35; 'file': 0.35; 'starting': 0.36; 'similar': 0.36; 'uses': 0.36; 'but': 0.37; "there's": 0.37; 'received:google.com': 0.37; 'enough': 0.37; 'patch': 0.38; 'received:209.85': 0.38; 'hoping': 0.38; 'think': 0.38; 'received:192': 0.38; 'sometimes': 0.38; 'should': 0.38; 'itself.': 0.38; 'manually': 0.38; "i'd": 0.39; 'else': 0.39; 'help': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'might': 0.40; 'packages': 0.40; 'more': 0.61; 'world': 0.62; 'choice.': 0.64; 'plus': 0.66; 'forced': 0.67; 'become': 0.69; 'relevant': 0.70; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'offer': 0.72; 'moore': 0.73; 'afraid,': 0.84; 'associations': 0.84; 'elevation': 0.84; 'ask,': 0.91; 'interest,': 0.91; 'presumably': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tUktt/JUrNI0WvM8MNj8/UoUqJ1UU2qTmsH5DEIfGmc=; b=B/64H+SghNhP7fTgCREvGCKpqY0gTeUmJawLiDp+Dqmd1YP1PBKul9K6lXoN4nYnJr Spw5PpUPShc/6NqMjk2yXOmecQGYrWhBQw6iAcxNxVXraGfdEwaCKMi9in2Pb8EPQjm7 VusBlR4NrDkV5AqbhOavhhKScHGjNx+X+xufM= |
| Date | Thu, 02 Feb 2012 11:28:12 +1100 |
| From | Mark Hammond <skippy.hammond@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; WOW64; rv:11.0a2) Gecko/20120131 Thunderbird/11.0a2 |
| MIME-Version | 1.0 |
| To | Paul Moore <p.f.moore@gmail.com> |
| Subject | Re: Registry entries set up by the Windows installer |
| References | <85db953e-15fe-43ad-b128-7437dde7e7b3@m2g2000vbc.googlegroups.com> |
| In-Reply-To | <85db953e-15fe-43ad-b128-7437dde7e7b3@m2g2000vbc.googlegroups.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 |
| Reply-To | mhammond@skippinet.com.au |
| 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.5338.1328142537.27778.python-list@python.org> (permalink) |
| Lines | 53 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1328142537 news.xs4all.nl 6855 [2001:888:2000:d::a6]:41038 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19758 |
Show key headers only | View raw
On 2/02/2012 2:09 AM, Paul Moore wrote: > I'm trying to get information on what registry entries are set up by > the Python Windows installer, and what variations exist. I don't know > enough about MSI to easily read the source, so I'm hoping someone who > knows can help :-) > > As far as I can see on my PC, the installer puts entries > > HKLM\Software\Python\PythonCore\x.y > > with various bits underneath. I think I've seen indications that > sometimes these are in HKCU, presumably for a "per user" install? If I > manually hack around in the registry, and have both HKLM and HKCU, > which one will Python use? For setting PYTHONPATH it uses both - HKEY_CURRENT_USER is added before HKEY_LOCAL_MACHINE. I can't recall which one distutils generated (bdist_wininst) installers will use - it may even offer the choice. > Furthermore, more of a Windows question than Python, but there's a > similar question with regard to the .py and .pyw file associations - > they can be in HKLM\Software\Classes or HKCU\Software\Classes. Which > takes precedence? No idea I'm afraid, but I'd expect it to use HKCU > I assume that the installer writes to HKLM for all > users and HKCU for per-user installs. Yep, I think that is correct. > Is there anything else I've missed? I'm also not sure which one the pylauncher project will prefer, which may become relevant should that get rolled into Python itself. > The reason I ask, is that I'm starting to work with virtualenv, and I > want to see what would be involved in (re-)setting the registry > entries to match the currently active virtualenv. virtualenvwrapper- > powershell seems to only deal with HKCU (which is a big plus on > Windows 7, as it avoids endless elevation requests :-)) but that > doesn't work completely cleanly with my all-users install. (Note: I'm > not entirely sure that changing global settings like this to patch a > per-console virtualenv is a good idea, but I'd like to know how hard > it is before dismissing it...) Out of interest, what is the reason forcing you to look at that - bdist_wininst installers? FWIW, my encounters with virtualenv haven't forced me to hack the registry - I just install bdist_wininst packages into the "parent" Python which isn't ideal but works fine for me. This was a year or so ago, so the world might have changed since then. Mark
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Registry entries set up by the Windows installer Paul Moore <p.f.moore@gmail.com> - 2012-02-01 07:09 -0800 Re: Registry entries set up by the Windows installer Mark Hammond <skippy.hammond@gmail.com> - 2012-02-02 11:28 +1100 Re: Registry entries set up by the Windows installer Paul Moore <p.f.moore@gmail.com> - 2012-02-02 08:09 +0000
csiph-web