Development : : Python 2.7.3 and Mercurial
Posted By: Yomgui. on 2012/6/8 6:50:42
Python 2.7.3 and Mercurial 2.2.2 have been released for MorphOS.

Projects located on bitbucket:

http://bitbucket.org/yomgui/cpython/wiki/Home
http://bitbucket.org/yomgui/mercurial/wiki/Home

The 3.x version has been also ported for Blender 2.5x, but not integrated in bitbucket.org yet.

Check Download tab for binaries distributions.

Python is a shared MorphOS library.

Python sources for MorphOS is now publicly available on bitbucket.org.

As official Python repository is managed with Mercurial SCM, I've also migrated mine development by cloning the bitbucket CPython project (mirror of official).
This make easier maintenance and keep up-to-date MorphOS branch with official sources.

Obviously Mercurial has been also forked and MorphOS support added. So version 2.2.2 (latest) is supported for HTTP(S) communications (SSH comes later with suprocess Python module support).

[WARNING] Libraries compatibility:
Since this 2.7.3, libraries naming has changed to respect compatibility the policy explained in issue #10 of the on Python project bucktracker.


About me:
I (Guillaume "Yomgui" Roguez) maintain Python port on MorphOS since 2003.
I've started this project for the need to port Blender on same platform.
This port was started in 2001 from an early 2.x version and continue today.

Some notes on my iterative workflow:

Both projects use special branches names to indicated MorphOS support (see xx-morphos branches).
These branches is the main MorphOS branch always based on a official tag + MorphOS support.
They never contains latest patches and fixes from official branches, except when a new tag come.

So for example in Python project, the branch "2.7-morphos" is a branch of official "2.7" one, and currently based on revision tagged "v2.7.3". No child revisions are integrated yet, but the "2.7" branch is regulary merged with "2.7-morphos" to integrate MorphOS support in a iterative process.
When the next official tag will come (i.e. v2.7.4), MorphOS branch will be merged with.

All MorphOS releases are made from the MorphOS branch only (it's a release branch).

This workflow permits to release "official" versions of Python, plus MorphOS support, without integrate a patch containing a possible non stable new feature.
 
  • Just looking around
    sandlbn
    Joined: 2009/4/5
    Posts: 19
    From: Ireland
    finally! you're a genius! Small question? PyMUI works with 2.7.3 ?
  • »2012/6/8 10:14
    Profile
  • MorphOS Developer
    Krashan
    Joined: 2003/6/11
    Posts: 1107
    From: Białystok...
    It seems that soon every Python application will require its own, separate Python installation. What a mess.
  • »2012/6/8 13:30
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Joined: 2004/8/31
    Posts: 348
    From: Québec ...
    Hey! What's happening to my news formatting! it's fully broken now...

    Quote:

    It seems that soon every Python application will require its own, separate Python installation. What a mess.


    stricly speaking, not "all".
    Only if minor number is changed.

    Version format is MAJOR.MINOR.REVISION

    Rules (official) are:
    - Changes in REVISION must not break C API compatibility
    - Changes in MINOR may break C API, not language.
    - Changes in MAJOR may break anything.

    So a 2.7.3, or 2.7.4, and so on use all the python27.library.

    But a branch (MAJOR.MINOR) has a quite long time life!

    The 2.5 branch exists since many years now... but it's a closed branch now.

    BTW: I'll not release a python25.library, I let the legacy python2.library (and python3.library also) as it, for thus who have installed them.

    Note also that "C:python" is always a softlink on latest installed 2.x package.
    For a 3.x it's "python3" (many scripts make this differences)

    Quote:


    finally! you're a genius! Small question? PyMUI works with 2.7.3 ?



    it should, but I've not release a pre-build package, so you have to do it yourself from sources, after installed MorphOS SDK and Python SDK (inside the python 2.7.3 archive)

    [ Edited by Yomgui On 2012/6/8 15:11 ]
    And now... next project!
  • »2012/6/8 14:07
    Profile Visit Website
  • Just looking around
    sandlbn
    Joined: 2009/4/5
    Posts: 19
    From: Ireland
    python version 2.7 is compatible with scripts written in Python 2.5. problem is the only python 3.x series. But mostly scripts use 2.7 revision.
    Quote:

    It seems that soon every Python application will require its own, separate Python installation. What a mess.
  • »2012/6/8 14:56
    Profile
  • Butterfly
    Butterfly
    clr666
    Joined: 2008/7/8
    Posts: 85
    From: Russia
    Still not works with Django framework :(
  • »2012/6/9 3:25
    Profile
  • Just looking around
    sandlbn
    Joined: 2009/4/5
    Posts: 19
    From: Ireland
    I'll try to add support for django. I managed to run the fcgi module, but without support for threading and database. Currently there is no support for sqlite in morphos fork.

    Quote:

    Still not works with Django framework :(
  • »2012/6/12 19:22
    Profile
  • Just looking around
    sandlbn
    Joined: 2009/4/5
    Posts: 19
    From: Ireland
    At now 1.3.1 and 1.4 django works :) Yomgui adds sqlite3 support to new build of python.


    morphos.jpg

    Quote:

    Still not works with Django framework :(


    [ Edited by sandlbn On 2012/6/13 10:13 ]

    [ Edited by sandlbn On 2012/6/14 9:05 ]
  • »2012/6/13 10:11
    Profile
  • Butterfly
    Butterfly
    clr666
    Joined: 2008/7/8
    Posts: 85
    From: Russia
    Quote:

    At now 1.3.1 and 1.4 django works :) Yomgui adds sqlite3 support to new build of python.


    Great news!
  • »2012/6/14 9:22
    Profile
  • Just looking around
    Amile
    Joined: 2008/8/3
    Posts: 6
    From:
    Quote:

    Yomgui adds sqlite3 support to new build of python.


    Really ?

    Edith says yes, great stuff :-D

    [ Edited by Amile On 2012/6/14 17:00 ]
  • »2012/6/14 14:43
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Joined: 2007/4/9
    Posts: 874
    From: Kingston upon ...
    Quote:

    I'll try to add support for django. I managed to run the fcgi module, but without support for threading and database. Currently there is no support for sqlite in morphos fork.

    Quote:

    Still not works with Django framework :(



    If you're taking requests... :-D

    ... any chance of numpy (and scipy if poss) support?
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »2012/7/31 19:38
    Profile Visit Website