Fwd: What can Nuitka do?
Chris “Kwpolska” Warrick
kwpolska at gmail.com
Sat Jun 28 03:45:39 EDT 2014
On Sat, Jun 28, 2014 at 7:40 AM, CM <cmpython at gmail.com> wrote:
> I'm confused as to why it's not just a .py file.
On Linux, the `nuitka` script would be run. Things in $PATH tend not
to have an extension, and you don’t need one to run Python. (you
can’t import files that don’t end in .py, though)
> The nuitka.bat, aside from some remarks, is this:
>
> @echo off
> setlocal
>
> "%~dp0..\python" "%~dp0nuitka" %*
>
> endlocal
>
This is a very fancy way of running Nuitka in the local python
interpreter, with all the arguments. For example, this:
C:\Python27\Scripts\nuitka.bat foo bar
will make the script run:
C:\Python27\python C:\Python27\Scripts\nuitka foo bar
This is to make Windows users’ life easier, to provide them
executables that work just as `nuitka` (and not `nuitka.py`).
However, a more modern method than the one used here is setuptools
entrypoints, which produces a nicer .exe file.
--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
More information about the Python-list
mailing list