How to Run Python on the Commodore Amiga

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kudos
    Recognized Expert New Member
    • Jul 2006
    • 127

    How to Run Python on the Commodore Amiga

    20 years ago, I was using a commodore Amiga. Last night I asked myself; could Python be run on such a computer?

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 14[/IMGNOTHUMB]

    I browsed python.org, and found the first relase of a Python for the Amiga to be Python 1.4.



    When I look at:



    I see that this release need 2MB of RAM, Kickstart 2.04 and a motorola 68020 CPU

    My Amiga computer is long gone, so I do not really need to be too strict on the specifications. I plan to run Python on an emulated Amiga with the requirements specificed.

    A nice Amiga emulator is:



    To run the Amiga, you need two things; The Amiga 2.04 Kickstart ROM and Workbench 2.04. These are still copyrighted, and you can get them from here:

    The official Amiga and AmigaOS preservation, emulation and support suite with games, demoscene, history and culture.


    When you have aquired the rom and the Workbench file, download the .lha file from:



    You might wonder, how to extract a .lha file? I use the 7zip:

    , archiver, compression, zip, best, compress, high, ratio, free, gnu, lgpl, unzip, far, win32, 7zip, long, file, names


    Extract this to a directory (and rememeber the path to this directory for later)

    To test Python on the Amiga I wrote the following test program:

    Code:
    for i in range(5):
     print "hello amiga!"
    I saved this in the Python-1.4 directory as test1.py

    I selected the computer to be an Amiga 500+ in WinUae:

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 15[/IMGNOTHUMB]

    I made sure the system had 2MB of memory...

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 16[/IMGNOTHUMB]

    ...and that it used a 68020 CPU:

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 17[/IMGNOTHUMB]

    I select the Kickstart 2.04 file...

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 18[/IMGNOTHUMB]

    ...and I set it to use the Workbench 2.1 operating system:

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 19[/IMGNOTHUMB]

    Finally, I sat the directory of Python1-4 to be the harddrive directory. You can call it "python" and the volum name as "p":

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 20[/IMGNOTHUMB]

    To start the Amiga you click "Start"

    It takes some time to load, at least compared to today.

    [IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 21[/IMGNOTHUMB]

    Once the operating system is loaded, click on Workbench2.1 icon, then on System and then on "Shell" (which is the command line tool in the Workbench)

    Select the harddrive with python by typing:

    p:

    then:

    cd Python1-4

    Here you can run the Python interpreter by typing:

    Python_020_IEEE test1.py (to run the test1.py program)

    or just : Python_020_IEEE for the normal Python shell.

    That's it! It is slow, but then again, it is an old computer.
    Attached Files
    Last edited by Niheel; Aug 22 '13, 07:28 AM. Reason: image issues
  • hemmerling
    New Member
    • Dec 2009
    • 2

    #2
    Python 1.4 probably lacks of everything in its language features which makes it "awsome" today.

    For comparison, there is a Python 2.4.2 for DOS-386, while Python 2.5.4 ist the latest for Win98ME :-)

    Nevertheless, you did great work to explain us howto.

    I am good old ATARI-ST and ATARI Falcon user, and such jewls like Python are not available there...

    Sincerely
    Rolf

    Comment

    • kudos
      Recognized Expert New Member
      • Jul 2006
      • 127

      #3
      Does a MINT-like OS run on for instance the Atari Falcon? In that case, you could run Python on an Atari Falcon, although you would not experience the "Atari feeling".

      I have been planning to try to run Python on an even "worse" device than an Amiga. For instance, could something like Pymite be compiled to run on an old device with very limited memory?

      Comment

      • hemmerling
        New Member
        • Dec 2009
        • 2

        #4
        Hello Kudos,

        For X86 platform, there is a free OpenSource C-Compiler WATCOM-C



        .. just to give you a clue with what to compile for 16-Bit and 32-BIT MSDOS, and of course Win 3.1 :-)

        Indeed, there is Python for ATMEL MEGA CPUs :-), as you already know:




        .. but it is a mess on ATMEL Mega, as all RAM space is used for the interpreter, and no RAM space left for the applications, and it would just load on the biggest newest ATMEL Mega CPUs, at all...

        How about discussing this on a Python forum?
        Are you on any of the forums ?!

        I would love to run Python on a 640K computer :-).

        Sincerely
        Rolf

        Comment

        Working...