Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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:Windows': 0.02; 'syntax': 0.04; 'argument': 0.05; 'interpreter': 0.05; 'tree': 0.05; 'subject:Python': 0.06; '64-bit': 0.07; 'error:': 0.07; 'modify': 0.07; 'subject:Question': 0.07; 'makefile': 0.09; 'mercurial': 0.09; 'python:': 0.09; 'setup.py': 0.09; 'warn': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'windows': 0.15; 'command:': 0.16; 'installer,': 0.16; 'iterable': 0.16; 'i\xe2\x80\x99m': 0.16; 'phase,': 0.16; 'syntaxerror:': 0.16; 'tried:': 0.16; 'typeerror:': 0.16; 'folder': 0.16; 'followed': 0.16; 'all.': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'bit': 0.19; 'trying': 0.19; 'pfxlen:0': 0.19; 'cc:addr:python.org': 0.22; 'print': 0.22; 'install': 0.23; 'library,': 0.24; 'stick': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'source': 0.25; '15,': 0.26; 'compiled': 0.26; 'extension': 0.26; 'somewhere': 0.26; 'header :In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'testing': 0.29; 'rest': 0.29; 'appreciated.': 0.29; 'am,': 0.29; 'errors': 0.30; 'message- id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'work.': 0.31; 'code': 0.31; 'allows': 0.31; 'file': 0.32; 'run': 0.32; 'quite': 0.32; 'url:python': 0.33; 'problem': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'maintained': 0.36; 'subject:regarding': 0.36; 'url:org': 0.36; 'effort': 0.37; 'skip:- 20': 0.37; 'server': 0.38; 'thank': 0.38; '2008': 0.38; 'needed': 0.38; 'explain': 0.39; 'enough': 0.39; 'most': 0.60; "you're": 0.61; 'you.': 0.62; 'here:': 0.62; 'skip:\xe2 10': 0.65; '8bit%:40': 0.68; 'invalid': 0.68; '8bit%:43': 0.74; 'jul': 0.74; 'installer': 0.84; 'navigate': 0.91; 'on?': 0.91; 'vars': 0.91; 'philip': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=AAhrOzKEjpxcn+Tn0u8ypBvzz+SzPgi/DeutTLT50Cw=; b=xteXGyb+k9Tf2guKkLbs9qmSWg0pG4z0hEglz5sofj4W9gdjrvTjznqOtAXXHz5ROE g/Rs5XWMImFNmdSto232RFXYbAohPv4efLXjt+l8T47iH2FWHYc/NEqKbop3A3QI6o0N SMw7olptigIPl5h8IR879RR068PV0AD3mTLJ8XZmyR/X1JtXRlA9zSxnU79E7rKBYb+0 x9q1G88wYFt8lf++ltafK5Y1DxfCFyuOopcBRODyL/f7b+MC022Zl46+pOKBHiqJtWU9 RKk3hhvCYJHvF+l+xvvTIILaNUGqzoc8lNzlzNvNJnEifRCVkonUDErTsvXgI+/h5Qw1 CewQ== X-Received: by 10.204.191.132 with SMTP id dm4mr7978595bkb.66.1373903221164; Mon, 15 Jul 2013 08:47:01 -0700 (PDT) MIME-Version: 1.0 Sender: zachary.ware@gmail.com In-Reply-To: <7B6560631CF08A4B8189A9CB669768F4228EB578@FMSMSX101.amr.corp.intel.com> References: <7B6560631CF08A4B8189A9CB669768F4228E86B7@FMSMSX101.amr.corp.intel.com> <7B6560631CF08A4B8189A9CB669768F4228EB578@FMSMSX101.amr.corp.intel.com> From: Zachary Ware Date: Mon, 15 Jul 2013 10:46:41 -0500 X-Google-Sender-Auth: Tl02DRkmfi98XSZPGbruL7dpmWc Subject: Re: Question regarding building Python Windows installer To: "Mcadams, Philip W" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 91 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373903228 news.xs4all.nl 15865 [2001:888:2000:d::a6]:54063 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50693 On Mon, Jul 15, 2013 at 8:11 AM, Mcadams, Philip W wrote: > I=E2=80=99m attempting to create a Python 64-bit Windows Installer. Foll= owing the > instructions here: http://docs.python.org/2/distutils/builtdist.html I=E2= =80=99m to > navigate to my Python folder and user command: > > > > python setup.py build --plat-name=3Dwin-amd64 bdist_wininst > > > > I get error: COMPILED_WTH_PYDEBUG =3D (=E2=80=98=E2=80=94with-pydebug=E2= =80=99 in > sysconfig.get_config_var(=E2=80=9CCONFIG_ARGS=E2=80=9D)) > > TypeError: argument of type =E2=80=98NoneType=E2=80=99 is not iterable > > > > I also have tried: > > > > setup.py build --plat-name=3Dwin-amd64 bdist_wininst > > > > and get error: > > > > File =E2=80=9Csetup.py=E2=80=9D, line 263 > > Print =E2=80=9C%-*s %-*s %-*s=E2=80=9D % (longest, e, longet, f, > > > > SyntaxError: invalid syntax > > > > I followed the instructions here: http://docs.python.org/devguide/setup.h= tml > to create a PC build for Windows which allows me to run a Python prompt. > Now I need to create a Windows Installer to install this Python on a Wind= ows > Server 2008 R2 box. > > > > To explain why I=E2=80=99m attempting to do this instead of just using th= e Windows > Installer provided by Python: > > > > I needed to modify a _ssl.c file in the Python source code to deal a > Mercurial that I=E2=80=99m trying to resolve. > > > > Any help on why I=E2=80=99m hitting these errors would be appreciated. > > > > Thank you. > > Most of your problem is that setup.py is just for the extension modules of the standard library, not the interpreter and all. The rest of your problem is that setup.py is really just not Windows-friendly, relying on some Makefile vars and Modules/Setup. Do you really need to install it? If you're still in the testing phase, would it be enough to just copy the source tree (with compiled interpreter) to the box you need it on? You can still use Mercurial with it, just stick the hg modules somewhere on PYTHONPATH. If you really do need an installer, I would suggest trying out Tools/buildbot/buildmsi.bat and see if you can get it to work for you. I will warn you, buildmsi.bat is not well maintained and it may take quite a bit of effort to make it work. HTH, -- Zach