Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73700
| References | (4 earlier) <b7f318a0-1a8c-4457-a838-768a1dc8fe45@googlegroups.com> <mailman.11302.1403929398.18130.python-list@python.org> <103dbef9-d18b-4ccb-90c5-1d840a183451@googlegroups.com> <mailman.11304.1403931780.18130.python-list@python.org> <e160910e-6acb-4a02-bfad-c3531c1f288e@googlegroups.com> |
|---|---|
| Date | 2014-06-28 16:16 +1000 |
| Subject | Re: What can Nuitka do? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11305.1403936204.18130.python-list@python.org> (permalink) |
On Sat, Jun 28, 2014 at 3:40 PM, CM <cmpython@gmail.com> wrote: > The nuitka file starts with > > #!C:\Python27_32\python.exe > > and is a Python script. It says in a docstring, > > """" > This is the main program of Nuitka, it > checks the options and then translates > one or more modules to a C++ source code > using Python C/API in a build directory > compiles it to either an executable or an > extension module that can contain other > modules. """ > > I'm confused as to why it's not just a .py > file. On a Unix system, you'd execute that with the name "nuitka". Although it seems to have had your Windows Python executable's path patched in, which presumably would be replaced with /usr/bin/python or something on Unix. > The nuitka.bat, aside from some > remarks, is this: > > @echo off > setlocal > > "%~dp0..\python" "%~dp0nuitka" %* > > endlocal And that's just calling on Python. I'm not familiar with the %~dp0 notation, but I'd say it's taking %0 (the name of the batch file) and taking just the drive and path from it. This should work, once you have your Windows path pointing to this directory. The one thing I'm seeing here is that your PATH has C:\Python27\Scripts\ but your script says C:\Python27_32\python.exe - what is the actual directory name for your Python directory? Did you rename it? It could be that something unrelated is causing problems. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 16:25 -0700
Re: What can Nuitka do? Paul Sokolovsky <pmiscml@gmail.com> - 2014-06-28 02:44 +0300
Re: What can Nuitka do? Rustom Mody <rustompmody@gmail.com> - 2014-06-27 19:10 -0700
Re: What can Nuitka do? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-28 03:09 +0000
Re: What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 20:44 -0700
Re: What can Nuitka do? Michael Torrie <torriem@gmail.com> - 2014-06-27 22:14 -0600
Re: What can Nuitka do? Chris Angelico <rosuav@gmail.com> - 2014-06-28 15:00 +1000
Re: What can Nuitka do? "Gisle Vanem" <gvanem@yahoo.no> - 2014-06-28 12:39 +0200
Re: What can Nuitka do? Roy Smith <roy@panix.com> - 2014-06-28 11:35 -0400
Re: What can Nuitka do? Chris Angelico <rosuav@gmail.com> - 2014-06-29 01:16 +1000
Re: [OT] What can Nuitka do? Michael Torrie <torriem@gmail.com> - 2014-06-30 07:10 -0600
Re: [OT] What can Nuitka do? Chris Angelico <rosuav@gmail.com> - 2014-06-30 23:36 +1000
Re: [OT] What can Nuitka do? Michael Torrie <torriem@gmail.com> - 2014-06-30 22:17 -0600
Re: [OT] What can Nuitka do? Michael Torrie <torriem@gmail.com> - 2014-06-30 22:26 -0600
Re: What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 20:06 -0700
Re: What can Nuitka do? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-28 03:17 +0000
Re: What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 20:57 -0700
Re: What can Nuitka do? Rustom Mody <rustompmody@gmail.com> - 2014-06-27 21:11 -0700
Re: What can Nuitka do? Stefan Behnel <stefan_ml@behnel.de> - 2014-06-28 06:23 +0200
Re: What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 21:45 -0700
Re: What can Nuitka do? Chris Angelico <rosuav@gmail.com> - 2014-06-28 15:02 +1000
Re: What can Nuitka do? CM <cmpython@gmail.com> - 2014-06-27 22:40 -0700
Re: What can Nuitka do? Chris Angelico <rosuav@gmail.com> - 2014-06-28 16:16 +1000
Fwd: What can Nuitka do? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-06-28 09:45 +0200
Re: What can Nuitka do? Michael Torrie <torriem@gmail.com> - 2014-06-27 21:28 -0600
Re: What can Nuitka do? Rustom Mody <rustompmody@gmail.com> - 2014-06-27 20:40 -0700
csiph-web