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


Groups > comp.lang.python > #73701

Fwd: What can Nuitka do?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'linux,': 0.07; 'skip:` 10': 0.07; 'utf-8': 0.07; '@echo': 0.09; 'python': 0.11; 'windows': 0.15; '.py': 0.16; 'extension,': 0.16; 'fancy': 0.16; 'interpreter,': 0.16; 'run:': 0.16; 'setuptools': 0.16; 'though)': 0.16; '(you': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'import': 0.22; 'tend': 0.24; 'file.': 0.24; 'script': 0.25; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'produces': 0.31; 'skip:c 30': 0.32; 'run': 0.32; 'running': 0.33; 'sense': 0.34; 'received:google.com': 0.35; 'method': 0.36; 'subject:?': 0.36; 'example,': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'aside': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'subject:Fwd': 0.61; 'from:charset:utf-8': 0.61; 'provide': 0.64; 'more': 0.64; 'skip:\xe2 10': 0.65; 'life': 0.66; 'here': 0.66; '8bit%:43': 0.74; 'can\xe2\x80\x99t': 0.84; 'easier,': 0.84; 'don\xe2\x80\x99t': 0.91; 'url:tk': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=D5iYeZu+b83rITg9wisr0VL7DG6Xz4NY8WS2271T8f4=; b=l8KS8q1/+kiJo8DBqweL05NIMC2XL/uQ2Acrqj+0SlkAQWuit0Xl8+FKs7gezp2FAj zf2m9XOn1XnElLYYRzCnpWjpZ5k2l669H5pJIZ8LWW6hHkr5tGEeWnTw8YwF1eHlIzxO V6G5LeRjWHjVA4k/z818L4AhO89de4ogqZJGBmPRPQQALeXPE6oR5+ZBD5evd3OHB9U6 daxDcuksUZL/FSiLTviROpOIybnQ98mZGaJsdDzIHzEQ31BON4fkix4qMxkydepOujDj aVBc2hcQOSppH2OUfMkD0w0W7+BmEFACvXGGwzDCdpf2HH2miOtgMRVaNxcdEdgN+8A2 IS/A==
MIME-Version 1.0
X-Received by 10.50.77.34 with SMTP id p2mr18196479igw.31.1403941539933; Sat, 28 Jun 2014 00:45:39 -0700 (PDT)
In-Reply-To <CAMw+j7JeoVBpLps5XZ9ZtRJ4=e1zSAU8aF_X3riyY_zxYb+=nA@mail.gmail.com>
References <4bfec709-263b-4c82-93ed-054432fd9d7e@googlegroups.com> <mailman.11296.1403912691.18130.python-list@python.org> <c710da7c-0c05-4f7d-b3b0-9d16ad9563fa@googlegroups.com> <53ae33ba$0$29985$c3e8da3$5496439d@news.astraweb.com> <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> <CAMw+j7JeoVBpLps5XZ9ZtRJ4=e1zSAU8aF_X3riyY_zxYb+=nA@mail.gmail.com>
Date Sat, 28 Jun 2014 09:45:39 +0200
Subject Fwd: What can Nuitka do?
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11306.1403941549.18130.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403941549 news.xs4all.nl 2947 [2001:888:2000:d::a6]:51011
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73701

Show key headers only | 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