Page 2 of 2

Re: Python Usage Guide

Posted: Tue Apr 17, 2018 11:33 am
by mahjongg
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.

Re: Python Usage Guide

Posted: Tue Apr 17, 2018 3:00 pm
by gkreidl
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.

Re: STICKY: Python Usage Guide

Posted: Wed Apr 18, 2018 11:35 am
by mahjongg
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.