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


Groups > comp.lang.python > #73701

Fwd: What can Nuitka do?

References (5 earlier) <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> <CAMw+j7JeoVBpLps5XZ9ZtRJ4=e1zSAU8aF_X3riyY_zxYb+=nA@mail.gmail.com>
Date 2014-06-28 09:45 +0200
Subject Fwd: What can Nuitka do?
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.11306.1403941549.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Jun 28, 2014 at 7:40 AM, CM <cmpython@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

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


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