User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10919
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Python Usage Guide

Tue Apr 17, 2018 11:33 am

gkreidl wrote:
Mon May 15, 2017 6:33 am
AshPowers wrote:I would like to compile my program into a binary executable as it will be part of a product and do not want the source code being so easily obtainable.

What is the best method of doing this?

Thanks!
Nuitka.
http://nuitka.net/
Not for the raspberry PI.

Besides the canonical python compiler is pypy, not this commercial offering.

gkreidl
Posts: 5710
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Python Usage Guide

Tue Apr 17, 2018 3:00 pm

mahjongg wrote:
Tue Apr 17, 2018 11:33 am
gkreidl wrote:
Mon May 15, 2017 6:33 am
AshPowers wrote:I would like to compile my program into a binary executable as it will be part of a product and do not want the source code being so easily obtainable.

What is the best method of doing this?

Thanks!
Nuitka.
http://nuitka.net/
Not for the raspberry PI.

Besides the canonical python compiler is pypy, not this commercial offering.
About every word you wrote is wrong!

1. The Debian archive is processor independent and works very well on the RPi. omxplayerGUI, rtranscode (and it's web module) have all been compiled with nuitka for quite some time.

2. There is nothing "canonical" about pypy and it does not create binaries. It's a JIT compiler. It's fast, but often unusable because it may use too much memory (I've seen it using 6 times more memory compared to original Python or Nuitka).

3) Nuitka is not commercial but Open Source.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10919
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: STICKY: Python Usage Guide

Wed Apr 18, 2018 11:35 am

About every word you wrote is wrong!
Luckily there weren't many of them. :P

PyPy is "canonical" in IMHO as it was the first and for a long time only "python compiler" I had heard off. But I realize now that is was not intended for this purpose.

but yes, if noitka works, and is fee (as in speech), then why not.

Return to “Python”

Who is online

Users browsing this forum: paddyg and 17 guests