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


Groups > comp.lang.python > #60415

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <fomcl@yahoo.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:Windows': 0.02; 'configure': 0.05; 'interpreter': 0.05; 'subject:Python': 0.06; 'versions,': 0.07; 'versions.': 0.07; 'wrapper': 0.09; 'python': 0.11; 'windows': 0.15; 'does,': 0.16; 'expects': 0.16; 'identifier.': 0.16; 'sdist': 0.16; 'virtualenv.': 0.16; 'all.': 0.16; 'wrote:': 0.18; "skip:' 30": 0.19; 'seems': 0.21; 'machine': 0.22; 'separate': 0.22; 'tests': 0.22; 'install': 0.23; 'installation': 0.23; 'entries': 0.24; 'mon,': 0.24; 'versions': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'to:2**1': 0.27; 'skip:- 40': 0.29; 'wondering': 0.29; "we'd": 0.29; 'patch': 0.29; 'work.': 0.31; 'code': 0.31; '25,': 0.31; 'another.': 0.31; 'subject:skip:i 10': 0.31; 'file': 0.32; 'this.': 0.32; 'regular': 0.32; 'run': 0.32; 'guess': 0.33; 'monday,': 0.33; 'date:': 0.34; 'there,': 0.34; 'advice': 0.35; 'possible.': 0.35; 'something': 0.35; 'but': 0.35; 'building': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'machine.': 0.36; 'email addr:python.org': 0.37; 'problems': 0.38; 'to:addr :python-list': 0.38; 'little': 0.38; 'does': 0.39; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'easy': 0.60; 'manually': 0.60; 'received:98.137': 0.60; 'most': 0.60; 'customized': 0.61; 'information,': 0.61; 'such': 0.63; 'our': 0.64; 'different': 0.65; 'great': 0.65; 'email name:python-list': 0.65; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'received:98.136': 0.69; 'installer': 0.84; 'prepackaged': 0.84; 'received:bullet.mail.gq1.yahoo.com': 0.84; 'together,': 0.84; '2013,': 0.91
X-Yahoo-Newman-Property ymail-3
X-Yahoo-Newman-Id 931530.33482.bm@omp1051.mail.gq1.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1385385603; bh=2DlQkwUKx9dv/pwvhLkYhtqSCne0XeIYGhfFrr2/HNk=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jE1HDf2iFaCge6eoXdxH4sYmc+AZeJ6XfnIldhsgywhUQEDH3MVX+rrI8q6jbabKDjSSqCR2H6r72vHvon57Z5QjppRHg9PZn0Io4IpQ/GzvRFtaQO998lrcKuEUkC28tfBVLbDUnUscgGcrQ7nk2w0a563a1btEfue/OnbVlXw=
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=A0fnfiihBkrQZ00Vwk/x57edZjRUBWP1yhQdfQm0IbzDNNuRlK28Fu4i4T3Fw2Xcpy5euGsyoptZcv9SUy8iuyudtTh8DjLGTSmGum7Z38BO6J/tasfWYpi2aQ4i7CikAFyvCWer2JT7bijOeS5zZHjlKjMwY8bLu3byWtNHgmU=;
X-YMail-OSG Bp4mnEMVM1k9ckM3bwE6v.XVhjV7C.aog5EOEfVvCX_sGQl zVHVktwoSa1e33KDgZ9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@yahoo.com>
Subject Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine
To python-list@python.org, Jurko Gospodnetić <jurko.gospodnetic@pke.hr>
In-Reply-To <l6vg0i$nb$1@ger.gmane.org>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Mailman-Approved-At Mon, 25 Nov 2013 14:32:52 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3169.1385386373.18130.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385386373 news.xs4all.nl 15946 [2001:888:2000:d::a6]:44841
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60415

Show key headers only | View raw


--------------------------------------------
On Mon, 11/25/13, Jurko Gospodnetić <jurko.gospodnetic@pke.hr> wrote:

 Subject: Parallel Python x.y.A and x.y.B installations on a single Windows machine
 To: python-list@python.org
 Date: Monday, November 25, 2013, 1:32 PM
 
   Hi all.
 
   I was wondering what is the best way to install
 multiple Python installations on a single Windows machine.
 
   Regular Windows installer works great as long as all
 your installations have a separate major.minor version
 identifier. However, if you want to have let's say 2.4.3
 & 2.4.4 installed at the same time it does not seem to
 work.
 
   I have not been able to find any prepackaged Python
 installation or really any solution to this. Most of the
 advice seems to boil down to 'do not use such versions
 together, use only the latest'.
 
   We would like to run automated tests on one of our
 projects (packaged as a Python library) with different
 Python versions, and since our code contains workarounds for
 several problems with specific Python patch versions, we'd
 really like to be able to run the tests with those specific
 versions and with as little fuss as possible.
 
   Looking at what the Python installer does, the only
 problematic part for working around this manually seems to
 be the registry entries under
 'Software\Python\PythonCore\M.m' where 'M.n' is the
 major.minor version identifier. If Python interpreter
 expects to always find its entries there, then I guess there
 is no way to do what we need without building customized
 Python executables. Is there a way to force a specific
 Python interpreter to not read in this information, read it
 from an .ini file or something similar?
 
HI Jurko,

Check out the following packages: virtualenv, virtualenvwrapper, tox
virtualenv + wrapper make it very easy to switch from one python version to another. Stricly speaking you don't need virtualenvwrapper, but it makes working with virtualenv a whole lot easier.Tox also uses virtualenv. You can configure it to sdist your package under different python versions. Also, you can make it run nosetests for each python version and/or implementation (pypy and jython are supported)

Albert-Jan 

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


Thread

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine Albert-Jan Roskam <fomcl@yahoo.com> - 2013-11-25 05:20 -0800

csiph-web