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


Groups > comp.lang.python > #43215

Re: py2exe and 64/32 bit windows

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@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; 'interpreter': 0.05; '64-bit': 0.07; 'binary': 0.07; 'dynamically': 0.07; '32-bit': 0.09; 'executable': 0.09; 'occasionally': 0.09; 'runtime': 0.09; 'windows,': 0.09; 'python': 0.11; 'windows': 0.15; '(written': 0.16; 'interpreter,': 0.16; 'rarely': 0.16; 'stumbling': 0.16; 'subject:bit': 0.16; 'subject:windows': 0.16; 'usable': 0.16; 'win7': 0.16; 'wrote:': 0.18; 'users.': 0.18; 'bit': 0.19; 'normally': 0.19; 'machine': 0.22; 'select': 0.22; 'separate': 0.22; 'installation': 0.23; "i've": 0.25; 'source': 0.25; 'subject:/': 0.26; 'distribute': 0.26; 'header:In-Reply-To:1': 0.27; 'host': 0.29; 'feature': 0.29; 'unix': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; 'os,': 0.31; 'probably': 0.32; 'run': 0.32; 'worked': 0.33; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'easiest': 0.38; 'somebody': 0.38; 'to:addr :python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'that,': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'days': 0.60; 'disclaimer:': 0.60; 'guy': 0.60; 'such': 0.63; 'choose': 0.64; 'pick': 0.64; 'provide': 0.64; 'installer': 0.84; 'edwards': 0.91; 'ultimate': 0.93; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=9Trbj4BEU4ixoX9MhWBuTkUKEF75v10zwL3BKOZkNzA=; b=qRyoSh+yIRajemRzXAbN9hSyd0lEI+qx4HL1Ldl2R3PRcFO1BcsD602oS1+R2/C4+b vAtLTJqhTv0mSOpdNAGUwNK/b6+GJUJgAmFOPj8ejGVwiJHlk1JMR6AG4rCsjSMD5f1R WL5ARSUkGM4biYtn/7wsbg4B/Kk/8QY7//ixND/ZDiuwmbn32AHVRaqs42yvCtQsaHGG XpgRuhkspMQGgD4ckevZnTBD2vxAWBO4TFH2q2enQHog4Jv/+oo/Lkvtv0qJUnz6mOCQ PibtX7JJQk60N0MMMyhBLmi58GOMuYnT1fGSu9QA4pwMZgL+eRS70Ndn2SDGaBuOkItQ X9Hg==
X-Received by 10.68.203.41 with SMTP id kn9mr3807805pbc.165.1365533828083; Tue, 09 Apr 2013 11:57:08 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <kk1m0b$i9i$1@reader1.panix.com>
References <kk1m0b$i9i$1@reader1.panix.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Tue, 9 Apr 2013 12:56:27 -0600
Subject Re: py2exe and 64/32 bit windows
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
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 <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.377.1365533838.3114.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365533838 news.xs4all.nl 2708 [2001:888:2000:d::a6]:45725
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43215

Show key headers only | View raw


On Tue, Apr 9, 2013 at 12:17 PM, Grant Edwards <invalid@invalid.invalid> wrote:
> Disclaimer: I'm a Unix guy and have been since the days of V7 on a
> PDP-11 -- I rarely use MS Windows.
>
> While I don't normally use Windows, I do occasionally have Python
> applications (written under Linux) which I'd like to distribute to
> Windows users. I've always used py2exe and Inno Setup to that, and
> it's always worked OK (after a fair bit of stumbling around).
>
> My "Windows partition" currently has a 64-bit Windows 7 Ultimate
> installation.
>
> I'm told that the executable I generate on that machine won't run on
> Win7 32-bit installations.  I'm not surprised by that, but I'd like to
> provide 32-bit operability -- and I'm not sure how one does that.
>
>  * If I built an executable on a 32-bit windows system using py2exe,
>    would it be usable on a 64-bit install?

Yes, 64-bit Windows systems will run 32-bit executables.

>  * Is there such a thing as a "fat" Windows binary that will run on
>    both 32 and 64 bit systems?

With .NET applications you can choose an AnyCPU build target that will
dynamically select 32-bit or 64-bit at runtime based on the host OS,
but there is no such feature for native applications like CPython.

>  * Or do you build separate 32 and 64 bit binaries and rely on the
>    installer to pick the right files?  [If Inno Setup can't do that, I
>    can probably get somebody else to build the installer using
>    something that can.]

You could do that.  The easiest thing to do though is just to make
sure that your 64-bit Windows installation is using a 32-bit Python
installation.  py2exe doesn't really build anything; it just bundles
your source files up with the Python interpreter, so as long as that
interpreter is 32-bit the generated exes should be able to run on
either platform.

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


Thread

py2exe and 64/32 bit windows Grant Edwards <invalid@invalid.invalid> - 2013-04-09 18:17 +0000
  Re: py2exe and 64/32 bit windows Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-09 12:56 -0600
    Re: py2exe and 64/32 bit windows Grant Edwards <invalid@invalid.invalid> - 2013-04-09 19:45 +0000
      Re: py2exe and 64/32 bit windows Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-09 14:01 -0600
      Re: py2exe and 64/32 bit windows Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-04-09 13:05 -0700

csiph-web