1st:  Thanks to Jerry for LAMP info.

Last night's meeting had a short discussion on a Python compiler: the
question was ?
So FYI follow this:

https://wiki.python.org/moin/Freeze

Freeze is a "pure Python" utility that ships with Python. You can use Freeze
 to compile executables for Unix systems.

If you want to write Python, but you don't know if your clients have
 Python installed, use this!

How to Use:

     Create a Python program, "hello.py"

Toggle line numbers

   1 print "Hello, World!"

Then find freeze.py on your system, and invoke it in a directory that you
don't
 mind filling up with .c files:

$ python freeze.py hello.py

With Debian, for example, dpkg -S freeze.py yields a current package name,
which
 is, as of the time of writing this, python2.4-examples.

On my system, at least, the output is this:

  Name                      File
  ----                      ----
m BaseHTTPServer            /usr/lib/python2.3/BaseHTTPServer.py
m FixTk                     /usr/lib/python2.3/lib-tk/FixTk.py
m SocketServer              /usr/lib/python2.3/SocketServer.py
m StringIO                  /usr/lib/python2.3/StringIO.py
m Tkconstants               /usr/lib/python2.3/lib-tk/Tkconstants.py
m Tkinter                   /usr/lib/python2.3/lib-tk/Tkinter.py
m UserDict                  /usr/lib/python2.3/UserDict.py    - - - - *CUT*
- - - -

Missing modules:
? Carbon.File imported from macpath
? Carbon.Folder imported from tempfile
? Carbon.Folders imported from tempfile
? EasyDialogs imported from getpass
? MacOS imported from Tkinter, py_compile
? SOCKS imported from ftplib  - - - - *CUT* - - - -

As you can see, even a simple Python program will require several dozen
modules  because these are necessary, simply for Python itself to start —
yes, Python  uses its own Standard Library to help run the language!

Next, run make:
$ make
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/usr/include/python2.3
-I/usr/include/python2.3 -c config.c
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/usr/include/python2.3
-I/usr/include/python2.3 -c frozen.c
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/usr/include/python2.3
-I/usr/include/python2.3 -c M_BaseHTTPServer.c  - - - - *CUT* - - - -

..and you should end up with the executable, hello!

$ ./hello
Hello, world!

         * ta da!*

See Also:

    Py2Exe -- like Freeze, but makes Windows executables
https://wiki.python.org/moin/Py2Exe

    PythonInstalledByDefault -- OS/desktop distributions that come with
Python installed

    README -- the *README file for the "freeze" utility* that comes with
Python

On Tue, Sep 8, 2015 at 8:33 AM, Perkins, Jerry <[email protected]> wrote:

> On 09/07/2015 07:23 PM, Andrew McEnroe wrote:
>
> We finally have a talk for tomorrow:
>
> David Wilson will talk about
>
> SDR (Software Defined Radio) and a new way to build GNU Radio blocks.
>
>  - - - - *CUT* - - - -
>
>
>    Very cool.   Greatly looking forward to it.
>
> --
>     Jerry Perkins
>           Home page   http://jperkins.us
>
> [image: Tux_Christmas_by_D3struct0.png] <http://jperkins.us>
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to