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: 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: References: <4bfec709-263b-4c82-93ed-054432fd9d7e@googlegroups.com> <53ae33ba$0$29985$c3e8da3$5496439d@news.astraweb.com> <103dbef9-d18b-4ccb-90c5-1d840a183451@googlegroups.com> Date: Sat, 28 Jun 2014 16:16:37 +1000 Subject: Re: What can Nuitka do? From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sat, Jun 28, 2014 at 3:40 PM, CM 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