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


Groups > comp.lang.python > #12112

Re: Windows No-Install Distribution?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <me+list/python@ixokai.io>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'happen,': 0.07; 'installed.': 0.07; 'python': 0.08; 'also:': 0.09; 'content- type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'msi': 0.09; 'am,': 0.12; '(at)': 0.16; '(dot)': 0.16; '.py': 0.16; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'installer,': 0.16; 'python.exe': 0.16; 'situations,': 0.16; 'wrote:': 0.16; 'subject:Windows': 0.18; "'python": 0.18; 'blog:': 0.21; 'header:In-Reply-To:1': 0.22; '(we': 0.23; 'convenience': 0.23; "python's": 0.24; 'work.': 0.27; 'explicitly': 0.29; 'fine.': 0.29; '3.x': 0.30; 'hansen': 0.30; 'subject:?': 0.31; 'received:24': 0.32; 'does': 0.32; 'installed': 0.32; 'actually': 0.33; "can't": 0.33; 'to:addr:python-list': 0.33; 'copying': 0.33; '...': 0.34; 'eric': 0.34; 'directory.': 0.34; 'another': 0.37; 'machine': 0.37; 'run': 0.37; 'but': 0.37; 'install': 0.37; 'not,': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'i.e.': 0.39; 'else': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'your': 0.61; 'grab': 0.66; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'mail:': 0.73; 'customers': 0.73; 'received:209.85.218.46': 0.91; 'received:mail- yi0-f46.google.com': 0.91; 'url:io': 0.93
Sender Ixokai <ixokai@ixokai.io>
Date Tue, 23 Aug 2011 12:52:34 -0700
From Stephen Hansen <me+list/python@ixokai.io>
MIME-Version 1.0
To python-list@python.org
Subject Re: Windows No-Install Distribution?
References <a3e33488-fb12-407c-8a3e-9acb6b839302@l2g2000vbn.googlegroups.com>
In-Reply-To <a3e33488-fb12-407c-8a3e-9acb6b839302@l2g2000vbn.googlegroups.com>
X-Enigmail-Version 1.1.1
OpenPGP id=555B1FE5; url=http://id.ixokai.io/pub.asc
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC4C08B17CE6119CD0BF99F7B"
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To me+list/python@ixokai.io
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.367.1314129182.27778.python-list@python.org> (permalink)
Lines 56
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314129182 news.xs4all.nl 23848 [2001:888:2000:d::a6]:35759
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12112

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 8/23/11 8:29 AM, Eric Lemings wrote:
> I would like to create/find a Python 3.x distribution that can be
> redeployed simply by copying a directory of required files; i.e.

Just take the default installer, install it, and then check the Python
directory: does it have the python DLL? If not, go look into the
system32 directory, grab it, drop it in the Python directory. (If you
installed for all-users this will happen,

Now copy/zip/whatever that Python directory to another machine where it
was not installed. It'll work fine.

You'll have to explicitly provide the path to the Python.exe of course;
you can't just double-click on a .py or run 'python blah.py', but if
your shortcuts/whatever all do C:\Where\You\Installed\Python.exe,
everything should just work.

We do that at work and never run into any trouble. (We actually provide
a MSI but only for convenience of customers who want to auto-install via
Group Policy).

In most situations, Python's good at "finding itself", i.e. where the
python.exe is actually located -- and it boostraps the location of
everything else based on that.

-- 

   Stephen Hansen
   ... Also: Ixokai
   ... Mail: me+list/python (AT) ixokai (DOT) io
   ... Blog: http://meh.ixokai.io/

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


Thread

Windows No-Install Distribution? Eric Lemings <eric.lemings@gmail.com> - 2011-08-23 08:29 -0700
  Re: Windows No-Install Distribution? Redcat <redcat@streemit.net> - 2011-08-23 15:31 +0000
    Re: Windows No-Install Distribution? Eric Lemings <eric.lemings@gmail.com> - 2011-08-23 09:46 -0700
  Re: Windows No-Install Distribution? Andrew Berg <bahamutzero8825@gmail.com> - 2011-08-23 10:59 -0500
  Re: Windows No-Install Distribution? Stephen Hansen <me+list/python@ixokai.io> - 2011-08-23 12:52 -0700
    Re: Windows No-Install Distribution? Eric Lemings <eric.lemings@gmail.com> - 2011-08-23 14:56 -0700
      Re: Windows No-Install Distribution? Terry Reedy <tjreedy@udel.edu> - 2011-08-23 19:28 -0400

csiph-web