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


Groups > comp.lang.python > #73700

Re: What can Nuitka do?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'causing': 0.04; '"""': 0.07; 'rename': 0.07; '@echo': 0.09; 'executable': 0.09; 'file)': 0.09; 'skip:/ 10': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; '.py': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'modules.': 0.16; 'notation,': 0.16; 'sat,': 0.16; 'skip:# 20': 0.16; 'wrote:': 0.18; 'module': 0.19; 'starts': 0.20; 'work,': 0.20; 'seems': 0.21; '(the': 0.22; 'cc:addr:python.org': 0.22; 'directory.': 0.24; 'script.': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'options': 0.25; 'script': 0.25; 'extension': 0.26; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'unix': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'file': 0.32; 'says': 0.33; 'actual': 0.34; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'subject:?': 0.36; 'should': 0.36; 'system,': 0.38; 'checks': 0.38; 'pm,': 0.38; 'aside': 0.39; 'subject:can': 0.39; 'either': 0.39; 'problems.': 0.60; 'name': 0.63; 'more': 0.64; 'taking': 0.65; 'here': 0.66; 'compiles': 0.84; 'presumably': 0.84; 'to:none': 0.92
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:cc :content-type; bh=GVyIGnvLlV+Fa3177DhIrmdbp4r+GDcWB5kv2jkcGQM=; b=F1d0g4GpnAEYtzQ8cIxcaUDKW3paRsbNAKdekVFMddxp1CfrIeOkN7MCw8CPfk4YrY Kz31sX4Pt5OZ1/R1QcTqn4w/h0QBBSIF4Jkmt5/kc9AdvIA0IIpwOvDgDK7dEB9HEISo OfwoZxJ1pIZsYzy7dEepvbW8iYMjc7T/YUOIeXUjXcXgFLCtUYJAos+YOHuunH+qZCT7 MrAPaxm3+G3haRygsnH9YnSn6idKu3wnXSxaWUbGCbqfbyzgZFuU7RIeHjn8R9wh98Wy kbbx3PaJAgjPNutv3HCCljVeGKSjsNPhVI5y/iVu7rYCWA27ldNFg+TwDi0SJyUDzB82 AkOA==
MIME-Version 1.0
X-Received by 10.221.9.72 with SMTP id ov8mr24262651vcb.27.1403936197415; Fri, 27 Jun 2014 23:16:37 -0700 (PDT)
In-Reply-To <e160910e-6acb-4a02-bfad-c3531c1f288e@googlegroups.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>
Date Sat, 28 Jun 2014 16:16:37 +1000
Subject Re: What can Nuitka do?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.11305.1403936204.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403936204 news.xs4all.nl 2965 [2001:888:2000:d::a6]:44024
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73700

Show key headers only | View raw


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 | 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