Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20936
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'script,': 0.07; 'python': 0.08; 'subject:script': 0.09; 'subject:windows': 0.09; 'subject:python': 0.10; 'projects,': 0.15; 'cmake': 0.16; 'exe': 0.16; 'name),': 0.16; 'pyinstaller': 0.16; 'setuptools': 0.16; 'somehow': 0.18; 'compiled': 0.21; "doesn't": 0.22; 'similar,': 0.23; 'creating': 0.25; 'code': 0.26; 'project,': 0.28; 'script': 0.28; 'anyway.': 0.29; 'installer': 0.30; 'message-id:@gmail.com': 0.31; "i've": 0.32; 'does': 0.32; 'there': 0.33; 'header:User- Agent:1': 0.33; 'easiest': 0.34; 'executable': 0.34; 'yet,': 0.34; 'to:addr:python-list': 0.35; 'received:209.85.214': 0.36; 'to:name :python-list': 0.37; 'run': 0.37; 'received:10.0.0': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'received:209.85': 0.38; 'some': 0.38; '(with': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.40; 'header:Received:6': 0.61; 'full': 0.62; 'saw': 0.66; 'ship': 0.78 |
| Received-SPF | pass (google.com: domain of andrea.crotti.0@gmail.com designates 10.205.121.136 as permitted sender) client-ip=10.205.121.136; |
| Authentication-Results | mr.google.com; spf=pass (google.com: domain of andrea.crotti.0@gmail.com designates 10.205.121.136 as permitted sender) smtp.mail=andrea.crotti.0@gmail.com; dkim=pass header.i=andrea.crotti.0@gmail.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=AF50ICrc0JpUw+MonZacCBmW4y5JrwgBoN+6ctEC6pg=; b=Ig5/X7Z5TujM2+gk9PIHeyU7f/UlvZfVmvlExeLJ+zJ3YfQLgwRqnL6iqQHd6l71NB XfYg594F+AILF/4PkK4BlYiQJunQFHkXWKMIX+R7pHtb/Ud/CytNT5hwTO7pPTfflnF3 amZTxJYdMn1GWHUCnUS9xj+RIrTWv3ke7+crg= |
| Date | Mon, 27 Feb 2012 13:57:56 +0000 |
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 |
| MIME-Version | 1.0 |
| To | python-list <python-list@python.org> |
| Subject | windows executable calling python script |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.196.1330351081.3037.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1330351081 news.xs4all.nl 6876 [2001:888:2000:d::a6]:35283 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20936 |
Show key headers only | View raw
I am creating an installer for python projects, using CMake and NSIS. Now my goal is to be able to select at installer time the python executable that will run that project, and then associate them. I saw that setuptools is able to generate exe wrappers, but how does that work exactly? From what I've understood there is some compiled C code that somehow calls the python script, is that correct? Supposing I ship this executable in the same directory of the python script (with a known name), is there a way to make it run the right python interpreter? The best and easiest solution would be to generate the full installer with PyInstaller or similar, but unfortunately that doesn't work yet, and we would still need both approaches anyway.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
windows executable calling python script Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-02-27 13:57 +0000
csiph-web