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


Groups > comp.lang.python > #50689

Re: Question regarding building Python Windows installer

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
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; 'subject:Python': 0.06; '64-bit': 0.07; 'error:': 0.07; 'modify': 0.07; 'subject:Question': 0.07; 'mercurial': 0.09; 'python:': 0.09; 'setup.py': 0.09; 'python': 0.11; 'windows': 0.15; 'command:': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'iterable': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'syntaxerror:': 0.16; 'tried:': 0.16; 'typeerror:': 0.16; 'folder': 0.16; 'followed': 0.16; 'wrote:': 0.18; 'trying': 0.19; '8bit%:5': 0.22; 'print': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'looks': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'appreciated.': 0.29; 'errors': 0.30; 'code': 0.31; 'allows': 0.31; 'file': 0.32; 'run': 0.32; 'url:python': 0.33; 'really': 0.36; 'subject:regarding': 0.36; 'url:org': 0.36; 'skip:- 20': 0.37; 'server': 0.38; '2008': 0.38; 'needed': 0.38; 'to:addr:python- list': 0.38; 'explain': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'here:': 0.62; 'charset:windows-1252': 0.65; 'header:Reply- To:1': 0.67; 'invalid': 0.68; 'reply-to:no real name:2**0': 0.71; 'capital': 0.73; 'installer': 0.84; 'reply-to:addr:python.org': 0.84; 'navigate': 0.91; 'philip': 0.95
X-CM-Score 0.00
X-CNFS-Analysis v=2.1 cv=KrN0hwmN c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=K2DDQYBT4xIA:10 a=6LhtfQxm4qkA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=N659UExz7-8A:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=TRnslD9nSVUA:10 a=5my92Ayf4CiT8Y0DoN0A:9 a=pILNOxqGKmIA:10 a=TlTBSUBdFhAA:10 a=w0tyDCdKWPcA:10
X-AUTH mrabarnett:2500
Date Mon, 15 Jul 2013 15:27:39 +0100
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version 1.0
To python-list@python.org
Subject Re: Question regarding building Python Windows installer
References <7B6560631CF08A4B8189A9CB669768F4228E86B7@FMSMSX101.amr.corp.intel.com> <7B6560631CF08A4B8189A9CB669768F4228EB578@FMSMSX101.amr.corp.intel.com>
In-Reply-To <7B6560631CF08A4B8189A9CB669768F4228EB578@FMSMSX101.amr.corp.intel.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
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.4730.1373898436.3114.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1373898436 news.xs4all.nl 15954 [2001:888:2000:d::a6]:33075
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:50689

Show key headers only | View raw


On 15/07/2013 14:11, Mcadams, Philip W wrote:
> I’m attempting to create a Python 64-bit Windows Installer.  Following
> the instructions here: http://docs.python.org/2/distutils/builtdist.html
> I’m to navigate to my Python folder and user command:
>
> python setup.py build --plat-name=win-amd64 bdist_wininst
>
> I get error: COMPILED_WTH_PYDEBUG = (‘—with-pydebug’ in
> sysconfig.get_config_var(“CONFIG_ARGS”))
>
> TypeError: argument of type ‘NoneType’ is not iterable
>
> I also have tried:
>
> setup.py build --plat-name=win-amd64 bdist_wininst
>
> and get error:
>
> File “setup.py”, line 263
> Print “%-*s %-*s %-*s” % (longest, e, longet, f,
>
> SyntaxError: invalid syntax
>
Does the line really start with "Print" (initial capital letter)?

Also, are you using Python 2 or Python 3? From the link above it looks
like Python 2.

> I followed the instructions here:
> http://docs.python.org/devguide/setup.html 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 Windows Server 2008 R2 box.
>
> To explain why I’m attempting to do this instead of just using the
> Windows Installer provided by Python:
>
> I needed to modify a _ssl.c file in the Python source code to deal a
> Mercurial that I’m trying to resolve.
>
> Any help on why I’m hitting these errors would be appreciated.
>

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


Thread

Re: Question regarding building Python Windows installer MRAB <python@mrabarnett.plus.com> - 2013-07-15 15:27 +0100

csiph-web